Class AbstractSoftMap.SoftValue<K,V>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- 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>
protected static final class AbstractSoftMap.SoftValue<K,V> extends SoftReference<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
get
-
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence
-
-