Hashtable implementation that allows delayed construction
of expensive objects
All operations that need access to the full list of objects
will call initAll() first.
Hashtable implementation that allows delayed construction of expensive objects
All operations that need access to the full list of objects will call initAll() first. Get and put are cheap.
Delegates to contains.
Returns:
true if the table contains the value.
Parameters: - value - the value to look for.
public java.util.Enumeration
elements
()
[Overrides java.util.Hashtable][Specified in java.util.Dictionary]
Get a enumeration over the elements.
Get a enumeration over the elements.
Returns:
an enumeration.
public java.util.Set<java.util.Map.Entry< K, V>>
entrySet
()
[Inherited From java.util.Hashtable]
publicsynchronized boolean
equals
(java.lang.Object arg0)
[Inherited From java.util.Hashtable]
publicsynchronized V
get
(java.lang.Object arg0)
[Inherited From java.util.Hashtable][Specified in java.util.Dictionary]
publicsynchronized int
hashCode
()
[Inherited From java.util.Hashtable]
protected void
initAll
()
Used to be part of init.
Used to be part of init. It must be done once - but we delay it until we do need _all_ tasks. Otherwise we just get the tasks that we need, and avoid costly init.
public boolean
isEmpty
()
[Overrides java.util.Hashtable][Specified in java.util.Dictionary]
Check if the table is empty.
Check if the table is empty.
Returns:
true if it is.
public java.util.Enumeration
keys
()
[Overrides java.util.Hashtable][Specified in java.util.Dictionary]
Get an enumeration over the keys.
Get an enumeration over the keys.
Returns:
an enumeration.
public java.util.Set< K>
keySet
()
[Inherited From java.util.Hashtable]
publicsynchronized V
put
( K arg0, V arg1)
[Inherited From java.util.Hashtable][Specified in java.util.Dictionary]
publicsynchronized void
putAll
(java.util.Map<java.lang.Object, java.lang.Object> arg0)
[Inherited From java.util.Hashtable]
protected void
rehash
()
[Inherited From java.util.Hashtable]
publicsynchronized V
remove
(java.lang.Object arg0)
[Inherited From java.util.Hashtable][Specified in java.util.Dictionary]
public int
size
()
[Overrides java.util.Hashtable][Specified in java.util.Dictionary]
Get the size of the table.
Get the size of the table.
Returns:
the size.
publicsynchronized java.lang.String
toString
()
[Inherited From java.util.Hashtable]
public java.util.Collection< V>
values
()
[Inherited From java.util.Hashtable]