|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--calypso.util.HashtableBase | +--calypso.util.AtomHashtable
Special hashtable that uses Atoms as keys. This extends HashtableBase to expose a public Atom based api This hastable uses identity comparisons on keys
Constructor Summary | |
AtomHashtable()
Constructs an empty Hashtable. |
|
AtomHashtable(int aInitialCapacity)
Constructs a Hashtable capable of holding at least initialCapacity elements before needing to grow. |
Method Summary | |
boolean |
contains(java.lang.Object aElement)
Returns true if the Hashtable contains the element. |
boolean |
containsKey(Atom aKey)
Returns true if the Hashtable contains the key key. |
java.lang.Object[] |
elementsArray()
Returns an Object array containing the Hashtable's elements. |
java.lang.Object |
get(Atom aKey)
Returns the element associated with the key. |
Atom[] |
keysArray()
Returns an Object array containing the Hashtable's keys. |
java.lang.Object |
put(Atom aKey,
java.lang.Object aElement)
Places the key/element pair in the Hashtable. |
java.lang.Object |
remove(Atom aKey)
Removes key and the element associated with it from the Hashtable. |
Methods inherited from class calypso.util.HashtableBase |
clear,
clone,
count,
elements,
elementsVector,
grow,
isEmpty,
keys,
keysVector,
size,
toString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AtomHashtable()
public AtomHashtable(int aInitialCapacity)
Method Detail |
public Atom[] keysArray()
public java.lang.Object[] elementsArray()
public boolean contains(java.lang.Object aElement)
public boolean containsKey(Atom aKey)
public java.lang.Object get(Atom aKey)
public java.lang.Object remove(Atom aKey)
public java.lang.Object put(Atom aKey, java.lang.Object aElement)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |