Class LRUMap

All Implemented Interfaces:
Serializable, Cloneable, Map, SequencedMap

public class LRUMap extends LinkedHashMap implements Serializable
A simple LRU cache that implements the Map interface. Instances are not thread-safe and should be synchronized externally, for instance by using Collections.synchronizedMap(java.util.Map<K, V>).
See Also:
  • Constructor Details

    • LRUMap

      public LRUMap(int maxEntries)
  • Method Details