Class WeakIdentityHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
io.netty.util.internal.WeakIdentityHashMap<K,V>
- All Implemented Interfaces:
Map<K,V>
A
Map with the properties of both IdentityHashMap and WeakHashMap.
Implementation is based on open-addressing. Not intended for more than a few thousand entries.
null keys and values are not supported by this implementation.
This class is not thread-safe.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
WeakIdentityHashMap
public WeakIdentityHashMap()
-
-
Method Details
-
entrySet
-
keySet
-
size
-
put
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
remove
-
clear
-