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