Package org.eclipse.net4j.util.ref
Klasse ReferenceValueMap2<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap2<K,V>
- Alle implementierten Schnittstellen:
Map<K,V>
- Bekannte direkte Unterklassen:
ReferenceValueMap,ReferenceValueMap2.Soft,ReferenceValueMap2.Strong,ReferenceValueMap2.Weak
A
Map implementation that uses KeyedReference instances (KeyedStrongReference,
KeyedSoftReference, KeyedWeakReference or KeyedPhantomReference) as its values.
A ReferenceValueMap can be used to cache mappings until the value of the mapping is no longer
reachable from outside of the map
Note: This map is not synchronized. If it is to be used by multiple threads concurrently the user is responsible for applying proper external synchronization!
- Seit:
- 3.3
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classstatic classstatic classVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) protected ReferenceQueue<V> protected abstract KeyedReference<K, V> createReference(K key, V value, ReferenceQueue<V> queue) protected Vdereference(KeyedReference<K, V> ref) entrySet()protected intbooleanisEmpty()protected voidprotected voidremoveAll(BiPredicate<K, V> predicate) intsize()Von Klasse geerbte Methoden java.util.AbstractMap
clone, equals, hashCode, keySet, putAll, toString, valuesVon Klasse geerbte Methoden java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Konstruktordetails
-
ReferenceValueMap2
public ReferenceValueMap2() -
ReferenceValueMap2
-
-
Methodendetails
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Angegeben von:
containsKeyin SchnittstelleMap<K,V> - Setzt außer Kraft:
containsKeyin KlasseAbstractMap<K,V>
-
containsValue
- Angegeben von:
containsValuein SchnittstelleMap<K,V> - Setzt außer Kraft:
containsValuein KlasseAbstractMap<K,V>
-
get
-
put
-
remove
-
removeAll
- Seit:
- 3.16
-
clear
public void clear() -
entrySet
-
createQueue
-
internalPurgeQueue
protected int internalPurgeQueue()- Seit:
- 3.7
-
purgeQueue
protected void purgeQueue() -
purged
-
dereference
-
createReference
-