All Packages Class Hierarchy This Package Previous Next Index
Class org.paneris.util.ExtendedHash
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----org.paneris.util.ExtendedHash
- public class ExtendedHash
- extends Hashtable
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.
-
ExtendedHash()
- normal constructor
-
ExtendedHash(int)
- constructor with capacity
-
ExtendedHash(int, float)
- constructor with capacity and loadfactor
-
ExtendedHash(Vector, Vector)
- constructor - make a hashtable out of 2 vectors: a keys and b values
-
clear()
- zap this Extended hashtable
-
elements()
- return the elements as a vector in the order they were added
-
joinKeys(String)
- join the keys together with the specified deliminator
-
keys()
- return the keys as a vector in the order they were added
-
put(Object, Object)
- add an item to the ExtendedHash
-
remove(Object)
- remove an item from the ExtendedHash
ExtendedHash
public ExtendedHash()
- normal constructor
ExtendedHash
public ExtendedHash(int initialCapacity,
float loadFactor)
- constructor with capacity and loadfactor
ExtendedHash
public ExtendedHash(int initialCapacity)
- constructor with capacity
ExtendedHash
public ExtendedHash(Vector a,
Vector b)
- constructor - make a hashtable out of 2 vectors: a keys and b values
clear
public synchronized void clear()
- zap this Extended hashtable
- Overrides:
- clear in class Hashtable
elements
public synchronized Enumeration elements()
- return the elements as a vector in the order they were added
- Overrides:
- elements in class Hashtable
keys
public synchronized Enumeration keys()
- return the keys as a vector in the order they were added
- Overrides:
- keys in class Hashtable
put
public synchronized Object put(Object key,
Object value)
- add an item to the ExtendedHash
- Overrides:
- put in class Hashtable
remove
public synchronized Object remove(Object key)
- remove an item from the ExtendedHash
- Overrides:
- remove in class Hashtable
joinKeys
public String joinKeys(String deliminator)
- join the keys together with the specified deliminator
All Packages Class Hierarchy This Package Previous Next Index