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.
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:
-
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 -
Method Summary
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
HashMapLRU
public HashMapLRU(int initialCapacity, int max_entries) Deprecated.Constructor.- Parameters:
initialCapacity- start with this sizemax_entries- dont exceed this number of entries.
-