|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.util.DoubleHashtable
public class DoubleHashtable
this class can be used to build two-way lookup tables. It provides lookup from keys to values and the inverse lookup from values to keys.
| Constructor Summary | |
|---|---|
DoubleHashtable()
public default constructor. |
|
| Method Summary | |
|---|---|
Object |
getKeyByValue(Object value)
lookup a key from the table by its value. |
Object |
getValueByKey(Object key)
lookup a value from the table by its key. |
void |
put(Object key,
Object value)
put a (key, value) pair into the table. |
void |
removeByKey(Object key)
remove a (key, value)-entry by its key |
void |
removeByValue(Object value)
remove a (key, value)-entry by its value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleHashtable()
| Method Detail |
|---|
public void put(Object key,
Object value)
key - the key object.value - the value object.public Object getValueByKey(Object key)
key - the key object
public Object getKeyByValue(Object value)
value - the value object
public void removeByKey(Object key)
key - the key objectpublic void removeByValue(Object value)
value - the value object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||