Constructor and Description |
---|
BiHashMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the map.
|
boolean |
containsKey(Object key)
Returns whether the forward map contains the specified key.
|
boolean |
containsValue(Object value)
Returns whether the reverse map contains the specified key.
|
Set<Map.Entry<K,V>> |
entrySet()
Returns the entry set of the forward map.
|
V |
get(Object key)
Returns the value of the key from the forward map.
|
boolean |
isEmpty()
Tests if the map is empty.
|
Set<K> |
keySet()
Returns the keys of the forward map.
|
V |
put(K key,
V value)
Puts an entry into the map, forward direction.
|
void |
putAll(Map<? extends K,? extends V> m)
Puts all entries of a map into this map, forward direction.
|
V |
remove(Object key)
Removes an entry, forward direction.
|
Set<Map.Entry<V,K>> |
rentrySet()
Returns the entry set of the reverse map.
|
K |
rget(Object key)
Returns the value of the key from the reverse map.
|
void |
rputAll(Map<? extends V,? extends K> m)
Puts all entries of a map into this map, reverse direction.
|
K |
rremove(Object key)
Removes an entry, reverse direction.
|
int |
size()
Returns the size of the map.
|
Collection<V> |
values()
Returns the keys of the reverse map.
|
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
key
- The key.public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
key
- The key.public Set<Map.Entry<V,K>> rentrySet()
public K rget(Object key)
public boolean isEmpty()
public int size()
public K rremove(Object key)
key
- The entry key.public void putAll(Map<? extends K,? extends V> m)
public void rputAll(Map<? extends V,? extends K> m)
m
- The map.Copyright © 2013. All Rights Reserved.