Package gaiasky.util
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
containsKey
(K key) boolean
containsValue
(V value) getBackward
(V key) getForward
(K key) void
boolean
removeValue
(V value)
-
Constructor Details
-
TwoWayMap
public TwoWayMap()
-
-
Method Details
-
add
-
getForward
-
getBackward
-
containsKey
-
containsValue
-
removeKey
-
removeValue
-