Package ucar.nc2.util
Class HashMapLRU<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- ucar.nc2.util.HashMapLRU<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,V>
@Deprecated public class HashMapLRU<K,V> extends LinkedHashMap<K,V>
Deprecated.do not useA HashMap that removes the oldest member when it exceeds the maximum number of entries. LOOK replace with something in guava?- See Also:
LinkedHashMap
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description HashMapLRU(int initialCapacity, int max_entries)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
removeEldestEntry(Map.Entry eldest)
Deprecated.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry eldest)
Deprecated.- Overrides:
removeEldestEntry
in classLinkedHashMap<K,V>
-
-