Package org.zkoss.stateless.util
Class BidirectionalMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- org.zkoss.stateless.util.BidirectionalMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
public class BidirectionalMap<K,V> extends java.util.HashMap<K,V>
A bidirectional map is a map that preserves the uniqueness of its values as well as that of its keys.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BidirectionalMap()
BidirectionalMap(int i)
BidirectionalMap(int i, float v)
BidirectionalMap(java.util.Map<? extends K,? extends V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
equals(java.lang.Object o)
K
getKey(V value)
Returns the key from the given value.int
hashCode()
V
put(K key, V value)
V
remove(java.lang.Object key)
-