Package org.jppf.utils.collections
Class SoftLRUCache<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jppf.utils.collections.SoftReferenceValuesMap<K,V>
org.jppf.utils.collections.SoftLRUCache<K,V>
- Type Parameters:
K- the type of the keys.V- the type of the values.
- All Implemented Interfaces:
Map<K,V>
- Author:
- Laurent Cohen
-
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 org.jppf.utils.collections.SoftReferenceValuesMap
clear, entrySet, get, isEmpty, keySet, put, remove, sizeMethods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, putAll, 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
-
SoftLRUCache
public SoftLRUCache(int capacity) - Parameters:
capacity- the capacity of this cache.
-