Class TwoWayIdentityHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.IdentityHashMap<K,V>
-
- org.eclipse.emf.edapt.internal.common.TwoWayIdentityHashMap<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,V>
,ReversableMap<K,V>
public class TwoWayIdentityHashMap<K,V> extends IdentityHashMap<K,V> implements ReversableMap<K,V>
A map that works in both directions- Version:
- $Rev$
- Author:
- herrmama, $Author$
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description TwoWayIdentityHashMap()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsValue(Object value)
Override for efficiencyV
put(K key, V value)
V
remove(Object key)
K
reverseGet(V value)
Get the key for a value-
Methods inherited from class java.util.IdentityHashMap
clone, containsKey, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, putAll, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
toString
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
reverseGet
public K reverseGet(V value)
Get the key for a value- Specified by:
reverseGet
in interfaceReversableMap<K,V>
-
containsValue
public boolean containsValue(Object value)
Override for efficiency- Specified by:
containsValue
in interfaceMap<K,V>
- Overrides:
containsValue
in classIdentityHashMap<K,V>
-
-