Class LinkedIdentityHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.IdentityHashMap<K,V>
-
- org.hibernate.internal.util.collections.LinkedIdentityHashMap<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,V>
public class LinkedIdentityHashMap<K,V> extends IdentityHashMap<K,V>
UtilityIdentityHashMap
implementation that maintains predictable iteration order, with special care for keys iteration efficiency, and uses reference equality (i.e.==
) in place of object-equality when comparing keys.Note that the
keySet()
,values()
andentrySet()
methods for this class return unmodifiable collections and are only meant for iteration.- 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 LinkedIdentityHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Object
clone()
Set<Map.Entry<K,V>>
entrySet()
Set<K>
keySet()
V
put(K key, V value)
V
remove(Object key)
boolean
remove(Object key, Object value)
Collection<V>
values()
-
Methods inherited from class java.util.IdentityHashMap
containsKey, containsValue, equals, forEach, get, hashCode, isEmpty, putAll, replaceAll, size
-
Methods inherited from class java.util.AbstractMap
toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, replace, replace
-
-
-
-
Method Detail
-
clear
public void clear()
-
values
public Collection<V> values()
-
clone
public Object clone()
- Overrides:
clone
in classIdentityHashMap<K,V>
-
-