|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable org.paneris.util.ExtendedHash
public class ExtendedHash
This class provides extended facilities to a hashtable paticularly, it will return keys and values in the order they were added, allowing it to be used as a vector.
Constructor Summary | |
---|---|
ExtendedHash()
Normal constructor. |
|
ExtendedHash(int initialCapacity)
constructor with capacity |
|
ExtendedHash(int initialCapacity,
float loadFactor)
constructor with capacity and loadfactor |
|
ExtendedHash(java.util.Vector a,
java.util.Vector b)
constructor - make a hashtable out of 2 vectors: a keys and b values |
Method Summary | |
---|---|
void |
clear()
zap this Extended hashtable |
java.util.Enumeration |
elements()
return the elements as a vector in the order they were added |
java.lang.String |
joinKeys(java.lang.String deliminator)
join the keys together with the specified deliminator |
java.util.Enumeration |
keys()
return the keys as a vector in the order they were added |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
add an item to the ExtendedHash |
java.lang.Object |
remove(java.lang.Object key)
remove an item from the ExtendedHash |
Methods inherited from class java.util.Hashtable |
---|
clone, contains, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtendedHash()
public ExtendedHash(int initialCapacity, float loadFactor)
public ExtendedHash(int initialCapacity)
public ExtendedHash(java.util.Vector a, java.util.Vector b)
Method Detail |
---|
public void clear()
clear
in interface java.util.Map
clear
in class java.util.Hashtable
public java.util.Enumeration elements()
elements
in class java.util.Hashtable
public java.util.Enumeration keys()
keys
in class java.util.Hashtable
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.Hashtable
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.Hashtable
public java.lang.String joinKeys(java.lang.String deliminator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |