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:
Serializable,Cloneable,Map<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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionBidirectionalMap(int i) BidirectionalMap(int i, float v) BidirectionalMap(Map<? extends K, ? extends V> map) -
Method Summary
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
toString
-
Constructor Details
-
BidirectionalMap
public BidirectionalMap(int i, float v) -
BidirectionalMap
public BidirectionalMap(int i) -
BidirectionalMap
public BidirectionalMap() -
BidirectionalMap
-
-
Method Details
-
getKey
Returns the key from the given value. -
remove
-
put
-
clear
public void clear() -
equals
-
hashCode
public int hashCode()
-