org.apache.tools.ant.util
Class LazyHashtable
java.lang.Object
java.util.Dictionary
java.util.Hashtable
org.apache.tools.ant.util.LazyHashtable
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class LazyHashtable
- extends java.util.Hashtable
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
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 |
initAllDone
protected boolean initAllDone
LazyHashtable
public LazyHashtable()
initAll
protected void initAll()
- 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
public java.util.Enumeration elements()
isEmpty
public boolean isEmpty()
size
public int size()
contains
public boolean contains(java.lang.Object value)
containsKey
public boolean containsKey(java.lang.Object value)
containsValue
public boolean containsValue(java.lang.Object value)
- Delegates to
contains
.
keys
public java.util.Enumeration keys()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.