Package org.apache.tools.ant.util
Class LazyHashtable<K,V>
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<K,V>
org.apache.tools.ant.util.LazyHashtable<K,V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>
Deprecated.
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.
- Since:
- Ant 1.6
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Check if the table contains a particular value.booleancontainsKey(Object value) Deprecated.Check if the table contains a particular key.booleancontainsValue(Object value) Deprecated.Delegates tocontains.elements()Deprecated.Get a enumeration over the elements.protected voidinitAll()Deprecated.Used to be part of init.booleanisEmpty()Deprecated.Check if the table is empty.keys()Deprecated.Get an enumeration over the keys.intsize()Deprecated.Get the size of the table.Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, get, getOrDefault, hashCode, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, toString, values
-
Field Details
-
initAllDone
protected boolean initAllDoneDeprecated.
-
-
Constructor Details
-
LazyHashtable
public LazyHashtable()Deprecated.No arg constructor.
-
-
Method Details
-
initAll
protected void initAll()Deprecated.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. -
elements
-
isEmpty
-
size
-
contains
-
containsKey
Deprecated.Check if the table contains a particular key.- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classHashtable<K,V> - Parameters:
value- the key to look for.- Returns:
- true if the table contains key.
-
containsValue
Deprecated.Delegates tocontains.- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classHashtable<K,V> - Parameters:
value- the value to look for.- Returns:
- true if the table contains the value.
-
keys
-