Package ucar.nc2.util

Class HashMapLRU<K,V>

All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

@Deprecated public class HashMapLRU<K,V> extends LinkedHashMap<K,V>
Deprecated.
do not use
A HashMap that removes the oldest member when it exceeds the maximum number of entries. LOOK replace with something in guava?
See Also:
  • Constructor Details

    • HashMapLRU

      public HashMapLRU(int initialCapacity, int max_entries)
      Deprecated.
      Constructor.
      Parameters:
      initialCapacity - start with this size
      max_entries - dont exceed this number of entries.