Class FifoMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.norconex.commons.lang.map.FifoMap<K,V>
Type Parameters:
K - the type of keys maintained by this map
V - the type of mapped values
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public final class FifoMap<K,V> extends LinkedHashMap<K,V>
Simple FIFO Map base on LinkedHashMap. This class is not thread safe (must be synchronized externally).
Since:
2.0.0
Author:
Pascal Essiembre
See Also:
  • Constructor Details

    • FifoMap

      public FifoMap(int maxSize)
  • Method Details