public static class ReferenceValueMap2.Soft<K,V> extends ReferenceValueMap2<K,V>
ReferenceValueMap2.Soft<K,V>, ReferenceValueMap2.Strong<K,V>, ReferenceValueMap2.Weak<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ReferenceValueMap2.Soft() |
ReferenceValueMap2.Soft(Map<K,KeyedReference<K,V>> map) |
Modifier and Type | Method and Description |
---|---|
protected KeyedReference<K,V> |
createReference(K key,
V value,
ReferenceQueue<V> queue) |
clear, containsKey, containsValue, createQueue, dereference, entrySet, get, isEmpty, purged, purgeQueue, put, remove, size
public ReferenceValueMap2.Soft()
public ReferenceValueMap2.Soft(Map<K,KeyedReference<K,V>> map)
protected KeyedReference<K,V> createReference(K key, V value, ReferenceQueue<V> queue)
createReference
in class ReferenceValueMap2<K,V>
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.