All Packages Class Hierarchy This Package Previous Next Index
Class ORG.opengroup.misc.TwinAsymmetricHashtable
java.lang.Object
|
+----ORG.opengroup.misc.TwinAsymmetricHashtable
- public class TwinAsymmetricHashtable
- extends Object
This class contains two hashtables:
ht - contains key Object mapped to a Vector of values
inverseHt - is the inverse of ht, in the sense that ht
values are the keys of inverseHt and ht keys become the values.
But since ht contains a Vector of values the two hashtables are
not symmetric.
TwinAsymmetricHashtable()
- Creates a new instance
get(Object)
- returns a new (key, value) pair
getInverse(Object)
- Returns the inverse (key, value) pair
put(Object, Object)
- Adds a new (key, value) pair
remove(Object)
- Removes the key (and corresponding values) from ht
Removes each value (key for inverseHt) from the inverseHt
removeInv(Object)
- Removes the inverse (key,value) pair
TwinAsymmetricHashtable
public TwinAsymmetricHashtable()
- Creates a new instance
put
public void put(Object key,
Object value)
- Adds a new (key, value) pair
get
public Object get(Object key)
- returns a new (key, value) pair
getInverse
public Object getInverse(Object key)
- Returns the inverse (key, value) pair
remove
public Object remove(Object key)
- Removes the key (and corresponding values) from ht
Removes each value (key for inverseHt) from the inverseHt
removeInv
public Object removeInv(Object key)
- Removes the inverse (key,value) pair
All Packages Class Hierarchy This Package Previous Next Index