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