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 Summary
Fields Modifier and Type Field Description protected boolean
initAllDone
Deprecated. -
Constructor Summary
Constructors Constructor Description LazyHashtable()
Deprecated.No arg constructor. -
Method Summary
Modifier and Type Method Description boolean
contains(java.lang.Object value)
Deprecated.Check if the table contains a particular value.boolean
containsKey(java.lang.Object value)
Deprecated.Check if the table contains a particular key.boolean
containsValue(java.lang.Object value)
Deprecated.Delegates tocontains
.java.util.Enumeration<V>
elements()
Deprecated.Get a enumeration over the elements.protected void
initAll()
Deprecated.Used to be part of init.boolean
isEmpty()
Deprecated.Check if the table is empty.java.util.Enumeration<K>
keys()
Deprecated.Get an enumeration over the keys.int
size()
Deprecated.Get the size of the table.
-
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
Deprecated.Get a enumeration over the elements. -
isEmpty
public boolean isEmpty()Deprecated.Check if the table is empty. -
size
public int size()Deprecated.Get the size of the table. -
contains
public boolean contains(java.lang.Object value)Deprecated.Check if the table contains a particular value. -
containsKey
public boolean containsKey(java.lang.Object value)Deprecated.Check if the table contains a particular key. -
containsValue
public boolean containsValue(java.lang.Object value)Deprecated.Delegates tocontains
. -
keys
Deprecated.Get an enumeration over the keys.
-