|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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.Hashtablepublic boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in class java.util.Hashtablepublic int size()
size in interface java.util.Mapsize in class java.util.Hashtablepublic boolean contains(java.lang.Object value)
contains in class java.util.Hashtablevalue - the value to look for.
public boolean containsKey(java.lang.Object value)
containsKey in interface java.util.MapcontainsKey in class java.util.Hashtablevalue - the key to look for.
public boolean containsValue(java.lang.Object value)
contains.
containsValue in interface java.util.MapcontainsValue in class java.util.Hashtablevalue - 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 | ||||||||