Class SoftHashMap<K,​V>

  • All Implemented Interfaces:

    public class SoftHashMap<K,​V>
    extends AbstractMap<K,​V>
    A in memory cache using soft references. (can be garbage collected) This code is based on:

    Note that entrySet() is not implemented and therefore many methods such as keySet(), containsKey(), values() etc do not work.

    This class is therefore best used as a cache simply to put and get items by a known key