public class DoubleHashtable
extends java.lang.Object
Constructor and Description |
---|
DoubleHashtable()
public default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKeyByValue(java.lang.Object value)
lookup a key from the table by its value.
|
java.lang.Object |
getValueByKey(java.lang.Object key)
lookup a value from the table by its key.
|
void |
put(java.lang.Object key,
java.lang.Object value)
put a (key, value) pair into the table.
|
void |
removeByKey(java.lang.Object key)
remove a (key, value)-entry by its key
|
void |
removeByValue(java.lang.Object value)
remove a (key, value)-entry by its value
|
public void put(java.lang.Object key, java.lang.Object value)
key
- the key object.value
- the value object.public java.lang.Object getValueByKey(java.lang.Object key)
key
- the key objectpublic java.lang.Object getKeyByValue(java.lang.Object value)
value
- the value objectpublic void removeByKey(java.lang.Object key)
key
- the key objectpublic void removeByValue(java.lang.Object value)
value
- the value object(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30