I know there is a WeakHashMap in java.util, but since it uses WeakReferences for everything, which is only referenced by this Ma
WeakHashMap
java.util
WeakReference
Ma
Have you considered using an LRUMap instead of a soft HashMap? You get more control over what gets stored (or at least, how much).