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 type
V - 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.