Package org.eclipse.net4j.util.ref
Class ReferenceValueMap2.Weak<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap2<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap2.Weak<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>
- Enclosing class:
ReferenceValueMap2<K,V>
A reference-value map that keeps values weakly reachable.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.ref.ReferenceValueMap2
ReferenceValueMap2.Soft<K,V>, ReferenceValueMap2.Strong<K, V>, ReferenceValueMap2.Weak<K, V> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyedReference<K, V> createReference(K key, V value, ReferenceQueue<V> queue) Methods inherited from class org.eclipse.net4j.util.ref.ReferenceValueMap2
clear, containsKey, containsValue, createQueue, dereference, entrySet, get, internalPurgeQueue, isEmpty, purged, purgeQueue, put, remove, removeAll, sizeMethods inherited from class java.util.AbstractMap
clone, equals, hashCode, keySet, putAll, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Weak
public Weak() -
Weak
-
-
Method Details
-
createReference
- Specified by:
createReferencein classReferenceValueMap2<K,V>
-