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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsKey(K key)booleancontainsValue(V value)getBackward(V key)getForward(K key)booleanbooleanremoveValue(V value)
-
Constructor Details
-
TwoWayHashmap
public TwoWayHashmap()
-
-
Method Details
-
add
-
getForward
-
getBackward
-
containsKey
-
containsValue
-
removeKey
-
removeValue
-