Package gaiasky.util
Class TwoWayHashmap<K,V>
java.lang.Object
gaiasky.util.TwoWayHashmap<K,V>
- Type Parameters:
K
- Key type in forward map, value in backward mapV
- Value type in forward map, key in backward map
Simple two-way hashmap implemented with two maps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
containsKey
(K key) boolean
containsValue
(V value) getBackward
(V key) getForward
(K key) boolean
boolean
removeValue
(V value)
-
Constructor Details
-
TwoWayHashmap
public TwoWayHashmap()
-
-
Method Details
-
add
-
getForward
-
getBackward
-
containsKey
-
containsValue
-
removeKey
-
removeValue
-