Class ReferenceValueMap.Soft<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap2<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap.Soft<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K, V>
- Enclosing class:
ReferenceValueMap<K,V>
A reference-value map that keeps values softly reachable.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class ReferenceValueMap
ReferenceValueMap.Soft<K,V>, ReferenceValueMap.Strong<K, V>, ReferenceValueMap.Weak<K, V> Nested classes/interfaces inherited from class 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 ReferenceValueMap
putIfAbsent, remove, replace, replaceMethods inherited from class ReferenceValueMap2
clear, containsKey, containsValue, createQueue, dereference, entrySet, get, internalPurgeQueue, isEmpty, purged, purgeQueue, put, remove, removeAll, sizeMethods inherited from interface ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
Soft
public Soft() -
Soft
-
-
Method Details
-
createReference
- Specified by:
createReferencein classReferenceValueMap2<K,V>
-