Class AbstractSoftMap.SoftValue<K,V>
java.lang.Object
java.lang.ref.Reference<V>
java.lang.ref.SoftReference<V>
com.helger.commons.collection.map.AbstractSoftMap.SoftValue<K,V>
- Type Parameters:
K- Key typeV- Value type
- Enclosing class:
AbstractSoftMap<K,V>
We define our own subclass of SoftReference which contains not only the
value but also the key to make it easier to find the entry in the HashMap
after it's been garbage collected.
-
Method Summary
Methods inherited from class java.lang.ref.SoftReference
getMethods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo