public class TwoWayIdentityHashMap<K,V> extends IdentityHashMap<K,V> implements ReversableMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TwoWayIdentityHashMap()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsValue(Object value)
Override for efficiency
|
V |
put(K key,
V value) |
V |
remove(Object key) |
K |
reverseGet(V value)
Get the key for a value
|
clone, containsKey, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, putAll, replaceAll, size, valuestoStringcompute, computeIfAbsent, computeIfPresent, containsKey, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, valuespublic K reverseGet(V value)
reverseGet in interface ReversableMap<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class IdentityHashMap<K,V>Copyright © 2020. All rights reserved.