| java.lang.Object org.apache.ojb.broker.util.DoubleHashtable
DoubleHashtable | public class DoubleHashtable (Code) | | 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.
author: Thomas Mahler version: $Id: DoubleHashtable.java,v 1.4.2.1 2005/12/21 22:27:47 tomdz Exp $ |
DoubleHashtable | public DoubleHashtable()(Code) | | public default constructor.
|
getKeyByValue | public Object getKeyByValue(Object value)(Code) | | lookup a key from the table by its value.
Parameters: value - the value object the associated key object |
getValueByKey | public Object getValueByKey(Object key)(Code) | | lookup a value from the table by its key.
Parameters: key - the key object the associated value object |
put | public void put(Object key, Object value)(Code) | | put a (key, value) pair into the table.
Parameters: key - the key object. Parameters: value - the value object. |
removeByKey | public void removeByKey(Object key)(Code) | | remove a (key, value)-entry by its key
Parameters: key - the key object |
removeByValue | public void removeByValue(Object value)(Code) | | remove a (key, value)-entry by its value
Parameters: value - the value object |
|
|