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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Hashtableclear, 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- 
initAllDoneprotected boolean initAllDoneDeprecated.
 
- 
- 
Constructor Details- 
LazyHashtablepublic LazyHashtable()Deprecated.No arg constructor.
 
- 
- 
Method Details- 
initAllprotected 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.
- 
elementsDeprecated.Get a enumeration over the elements.
- 
isEmptypublic boolean isEmpty()Deprecated.Check if the table is empty.
- 
sizepublic int size()Deprecated.Get the size of the table.
- 
containsDeprecated.Check if the table contains a particular value.
- 
containsKeyDeprecated.Check if the table contains a particular key.- Specified by:
- containsKeyin interface- Map<K,- V> 
- Overrides:
- containsKeyin class- Hashtable<K,- V> 
- Parameters:
- value- the key to look for.
- Returns:
- true if the table contains key.
 
- 
containsValueDeprecated.Delegates tocontains.- Specified by:
- containsValuein interface- Map<K,- V> 
- Overrides:
- containsValuein class- Hashtable<K,- V> 
- Parameters:
- value- the value to look for.
- Returns:
- true if the table contains the value.
 
- 
keysDeprecated.Get an enumeration over the keys.
 
-