Package org.rcsb.mmtf.spark.utils
Class TwoWayHashmap<K,V>
- java.lang.Object
-
- org.rcsb.mmtf.spark.utils.TwoWayHashmap<K,V>
-
- Type Parameters:
K- the key parameter typeV- the value parameter type
- All Implemented Interfaces:
java.io.Serializable
public class TwoWayHashmap<K,V> extends java.lang.Object implements java.io.SerializableA class to have a bi-directional map.- Author:
- Anthony Bradley From here: http://stackoverflow.com/questions/3430170/how-to-create-a-2-way-map-in-java
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwoWayHashmap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(K key, V value)Add a new key value pairKgetBackward(V value)Get a value using a key in the backward way.VgetForward(K key)Get a value using a key in the conventional way.
-