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:
- java.io.Serializable,- java.lang.Cloneable,- java.util.Map<K,V>
 
 @Deprecated public class LazyHashtable<K,V> extends java.util.Hashtable<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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleaninitAllDoneDeprecated.
 - 
Constructor SummaryConstructors Constructor Description LazyHashtable()Deprecated.No arg constructor.
 - 
Method SummaryModifier and Type Method Description booleancontains(java.lang.Object value)Deprecated.Check if the table contains a particular value.booleancontainsKey(java.lang.Object value)Deprecated.Check if the table contains a particular key.booleancontainsValue(java.lang.Object value)Deprecated.Delegates tocontains.java.util.Enumeration<V>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.java.util.Enumeration<K>keys()Deprecated.Get an enumeration over the keys.intsize()Deprecated.Get the size of the table.
 
- 
- 
- 
Method Detail- 
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.
 - 
elementspublic java.util.Enumeration<V> elements() Deprecated.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.
 - 
containspublic boolean contains(java.lang.Object value) Deprecated.Check if the table contains a particular value.
 - 
containsKeypublic boolean containsKey(java.lang.Object value) Deprecated.Check if the table contains a particular key.
 - 
containsValuepublic boolean containsValue(java.lang.Object value) Deprecated.Delegates tocontains.
 
- 
 
-