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()
- 
- Overrides:
- elementsin class- java.util.Hashtable
 
- 
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- java.util.Map
- Overrides:
- isEmptyin class- java.util.Hashtable
 
- 
 
size
public int size()
- 
- Specified by:
- sizein interface- java.util.Map
- Overrides:
- sizein class- java.util.Hashtable
 
- 
 
contains
public boolean contains(java.lang.Object value)
- 
- Overrides:
- containsin class- java.util.Hashtable
 
- 
 
containsKey
public boolean containsKey(java.lang.Object value)
- 
- Specified by:
- containsKeyin interface- java.util.Map
- Overrides:
- containsKeyin class- java.util.Hashtable
 
- 
 
containsValue
public boolean containsValue(java.lang.Object value)
- Delegates to contains.
 
- 
- Specified by:
- containsValuein interface- java.util.Map
- Overrides:
- containsValuein class- java.util.Hashtable
 
- 
 
keys
public java.util.Enumeration keys()
- 
- Overrides:
- keysin class- java.util.Hashtable
 
- 
 
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.