Package org.nd4j.common.collections
Class WeakIdentityHashMap<K,V>
- java.lang.Object
-
- org.nd4j.common.collections.WeakIdentityHashMap<K,V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classWeakIdentityHashMap.Entry<K,V>protected static classWeakIdentityHashMap.KeyRef<K>
-
Field Summary
Fields Modifier and Type Field Description protected Map<WeakIdentityHashMap.KeyRef<K>,V>mapprotected ReferenceQueue<K>refQueue
-
Constructor Summary
Constructors Constructor Description WeakIdentityHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected voidclearReferences()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()Vget(Object key)booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)Vremove(Object key)intsize()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
map
protected final Map<WeakIdentityHashMap.KeyRef<K>,V> map
-
refQueue
protected final ReferenceQueue<K> refQueue
-
-
Method Detail
-
clearReferences
protected void clearReferences()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
-