Class LRUMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
org.sejda.commons.collection.LRUMap<K,V>
Type Parameters:
K - key of the map
V - value
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class LRUMap<K,V> extends LinkedHashMap<K,V>
Fixed size Map implementation removing the least recently used element when Map.put(Object, Object) is called.
Author:
Andrea Vacondio
See Also:
  • Constructor Details

    • LRUMap

      public LRUMap(int maxCapacity)
  • Method Details