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 voidclear()booleancontainsValue(Object value)Override for efficiencyVput(K key, V value)Vremove(Object key)KreverseGet(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:
reverseGetin interfaceReversableMap<K,V>
-
containsValue
public boolean containsValue(Object value)
Override for efficiency- Specified by:
containsValuein interfaceMap<K,V>- Overrides:
containsValuein classIdentityHashMap<K,V>
-
-