|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable org.apache.tools.ant.util.LazyHashtable
public class LazyHashtable
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.
Field Summary | |
---|---|
protected boolean |
initAllDone
|
Constructor Summary | |
---|---|
LazyHashtable()
No arg constructor. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object value)
Check if the table contains a particular value. |
boolean |
containsKey(java.lang.Object value)
Check if the table contains a particular key. |
boolean |
containsValue(java.lang.Object value)
Delegates to contains . |
java.util.Enumeration |
elements()
Get a enumeration over the elements. |
protected void |
initAll()
Used to be part of init. |
boolean |
isEmpty()
Check if the table is empty. |
java.util.Enumeration |
keys()
Get an enumeration over the keys. |
int |
size()
Get the size of the table. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, entrySet, equals, get, hashCode, keySet, put, putAll, rehash, remove, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean initAllDone
Constructor Detail |
---|
public LazyHashtable()
Method Detail |
---|
protected void initAll()
public java.util.Enumeration elements()
elements
in class java.util.Hashtable
public boolean isEmpty()
isEmpty
in interface java.util.Map
isEmpty
in class java.util.Hashtable
public int size()
size
in interface java.util.Map
size
in class java.util.Hashtable
public boolean contains(java.lang.Object value)
contains
in class java.util.Hashtable
value
- the value to look for.
public boolean containsKey(java.lang.Object value)
containsKey
in interface java.util.Map
containsKey
in class java.util.Hashtable
value
- the key to look for.
public boolean containsValue(java.lang.Object value)
contains
.
containsValue
in interface java.util.Map
containsValue
in class java.util.Hashtable
value
- the value to look for.
public java.util.Enumeration keys()
keys
in class java.util.Hashtable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |