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.


Constructor Index

 o ExtendedHash()
normal constructor
 o ExtendedHash(int)
constructor with capacity
 o ExtendedHash(int, float)
constructor with capacity and loadfactor
 o ExtendedHash(Vector, Vector)
constructor - make a hashtable out of 2 vectors: a keys and b values

Method Index

 o clear()
zap this Extended hashtable
 o elements()
return the elements as a vector in the order they were added
 o joinKeys(String)
join the keys together with the specified deliminator
 o keys()
return the keys as a vector in the order they were added
 o put(Object, Object)
add an item to the ExtendedHash
 o remove(Object)
remove an item from the ExtendedHash

Constructors

 o ExtendedHash
 public ExtendedHash()
normal constructor

 o ExtendedHash
 public ExtendedHash(int initialCapacity,
                     float loadFactor)
constructor with capacity and loadfactor

 o ExtendedHash
 public ExtendedHash(int initialCapacity)
constructor with capacity

 o ExtendedHash
 public ExtendedHash(Vector a,
                     Vector b)
constructor - make a hashtable out of 2 vectors: a keys and b values

Methods

 o clear
 public synchronized void clear()
zap this Extended hashtable

Overrides:
clear in class Hashtable
 o elements
 public synchronized Enumeration elements()
return the elements as a vector in the order they were added

Overrides:
elements in class Hashtable
 o keys
 public synchronized Enumeration keys()
return the keys as a vector in the order they were added

Overrides:
keys in class Hashtable
 o put
 public synchronized Object put(Object key,
                                Object value)
add an item to the ExtendedHash

Overrides:
put in class Hashtable
 o remove
 public synchronized Object remove(Object key)
remove an item from the ExtendedHash

Overrides:
remove in class Hashtable
 o joinKeys
 public String joinKeys(String deliminator)
join the keys together with the specified deliminator


All Packages  Class Hierarchy  This Package  Previous  Next  Index