Package gaia.cu9.ari.gaiaorbit.util
Class TwoWayHashmap<K,V>
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.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
public class TwoWayHashmap<K,V> extends java.lang.Object
Simple two-way hashmap implemented with two maps.
-
-
Constructor Summary
Constructors Constructor Description TwoWayHashmap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(K key, V value)
boolean
containsKey(K key)
boolean
containsValue(V value)
K
getBackward(V key)
V
getForward(K key)
-