|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.BiHashMap<a,b>
a - any datatype for the keyb - any datatype for the valuepublic class BiHashMap<a,b>
Bidirectional HashMap utility class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
BiHashMap()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public BiHashMap()
| Method Detail |
|---|
public b getValue(a key)
key - the key
public Iterator<a> getKeyIterator()
public a getKey(b val)
val - the value
public b remove(Object key)
remove in interface Map<a,b>key - the key
public a removeVal(Object value)
value - the value
public b put(a key,
b val)
put in interface Map<a,b>key - the keyval - the value
public void clear()
clear in interface Map<a,b>public Map<a,b> getKeyMap()
public Map<b,a> getValMap()
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||