calypso.util
Class HashtableLite
java.lang.Object
|
+--calypso.util.HashtableLite
- public class HashtableLite
- extends java.lang.Object
- implements java.lang.Cloneable
A utility class to avoid the pain (and memory bloat)
of making lots of small hashtables. A real HashTable
isn't created until the number of elements grows past
a certain number (defined internally to HashtableLite).
It sure would have been nice if Hashtables were an interface.
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
HashtableLite
public HashtableLite()
clear
public void clear()
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
contains
public boolean contains(java.lang.Object item)
containsKey
public boolean containsKey(Atom key)
count
public int count()
elements
public java.util.Enumeration elements()
elementsArray
public java.lang.Object[] elementsArray()
elementsVector
public java.util.Vector elementsVector()
get
public java.lang.Object get(Atom key)
isEmpty
public boolean isEmpty()
put
public java.lang.Object put(Atom key,
java.lang.Object item)
keys
public java.util.Enumeration keys()
keysArray
public Atom[] keysArray()
keysVector
public java.util.Vector keysVector()
remove
public java.lang.Object remove(Atom key)
size
public int size()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object