Class TwoWayMap<K,V>
java.lang.Object
gaiasky.util.TwoWayMap<K,V>
- Type Parameters:
K- Type of first object.V- Type of second object.
A map that allows forward and backward referencing.
It is implemented by wrapping two hash maps and keeping them up to date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsKey(K key) booleancontainsValue(V value) getBackward(V key) getForward(K key) voidbooleanremoveValue(V value)
-
Constructor Details
-
TwoWayMap
public TwoWayMap()
-
-
Method Details
-
add
-
getForward
-
getBackward
-
containsKey
-
containsValue
-
removeKey
-
removeValue
-