org.apache.tools.ant.util
Class LazyHashtable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.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

Field Summary
protected  boolean initAllDone
           
 
Constructor Summary
LazyHashtable()
           
 
Method Summary
 boolean contains(java.lang.Object value)
           
 boolean containsKey(java.lang.Object value)
           
 boolean containsValue(java.lang.Object value)
          Delegates to contains.
 java.util.Enumeration elements()
           
protected  void initAll()
          Used to be part of init.
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 int size()
           
 
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
 

Field Detail

initAllDone

protected boolean initAllDone
Constructor Detail

LazyHashtable

public LazyHashtable()
Method Detail

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-2005 Apache Software Foundation. All Rights Reserved.