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.


Constructor Index

 o TwinAsymmetricHashtable()
Creates a new instance

Method Index

 o get(Object)
returns a new (key, value) pair
 o getInverse(Object)
Returns the inverse (key, value) pair
 o put(Object, Object)
Adds a new (key, value) pair
 o remove(Object)
Removes the key (and corresponding values) from ht Removes each value (key for inverseHt) from the inverseHt
 o removeInv(Object)
Removes the inverse (key,value) pair

Constructors

 o TwinAsymmetricHashtable
public TwinAsymmetricHashtable()
Creates a new instance

Methods

 o put
public void put(Object key,
                Object value)
Adds a new (key, value) pair

 o get
public Object get(Object key)
returns a new (key, value) pair

 o getInverse
public Object getInverse(Object key)
Returns the inverse (key, value) pair

 o remove
public Object remove(Object key)
Removes the key (and corresponding values) from ht Removes each value (key for inverseHt) from the inverseHt

 o removeInv
public Object removeInv(Object key)
Removes the inverse (key,value) pair


All Packages  Class Hierarchy  This Package  Previous  Next  Index