Class CacheMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
io.sf.jclf.util.CacheMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class CacheMap<K,V> extends HashMap<K,V>
A HashMap-based cache with an expiration method

Note that there are better ways to achieve expirations in modern JDKs.

See Also:
  • Field Details

  • Constructor Details

    • CacheMap

      public CacheMap()
    • CacheMap

      public CacheMap(int initialCapacity)
    • CacheMap

      public CacheMap(int initialCapacity, float loadFactor)
  • Method Details