Package org.h2.util
Class SoftValuesHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.h2.util.SoftValuesHashMap<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>
Map which stores items using SoftReference. Items can be garbage collected
and removed. It is not a general purpose cache, as it doesn't implement some
methods, and others not according to the map definition, to improve speed.
-
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.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SoftValuesHashMap
public SoftValuesHashMap()
-
-
Method Details
-
get
-
put
Store the object. The return value of this method is null or a SoftReference. -
remove
Remove an object. -
clear
public void clear() -
entrySet
-