a - any datatype for the keyb - any datatype for the valuepublic class BiHashMap<a,b>
extends java.lang.Object
implements java.util.Map<a,b>
| Constructor and Description |
|---|
BiHashMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
get the value for key
|
boolean |
containsKey(java.lang.Object arg0) |
boolean |
containsValue(java.lang.Object arg0) |
java.util.Set<java.util.Map.Entry<a,b>> |
entrySet() |
b |
get(java.lang.Object arg0) |
a |
getKey(b val)
get the value for key
|
java.util.Iterator<a> |
getKeyIterator() |
java.util.Map<a,b> |
getKeyMap()
get a reference to the internal key map
|
java.util.Map<b,a> |
getValMap()
get a reference to the internal value map
|
b |
getValue(a key)
get the value for key
|
boolean |
isEmpty() |
java.util.Set<a> |
keySet() |
b |
put(a key,
b val)
put the value for key
both key and value must be non-null |
void |
putAll(java.util.Map<? extends a,? extends b> arg0) |
b |
remove(java.lang.Object key)
remove key and its associated value
|
a |
removeVal(java.lang.Object value)
remove value and its associated key
|
void |
setUnique(boolean b)
TODO Please insert comment!
|
int |
size() |
java.lang.String |
toString() |
java.util.Collection<b> |
values() |
public b getValue(a key)
key - the keypublic java.util.Iterator<a> getKeyIterator()
public a getKey(b val)
val - the valuepublic b remove(java.lang.Object key)
public a removeVal(java.lang.Object value)
value - the valuepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean containsKey(java.lang.Object arg0)
public boolean containsValue(java.lang.Object arg0)
public b get(java.lang.Object arg0)
public boolean isEmpty()
public java.util.Set<a> keySet()
public int size()
public java.util.Collection<b> values()
public void setUnique(boolean b)
b -