Class ConcurrentFixedSizeCache<K,V>
java.lang.Object
org.eblocker.server.common.collections.ConcurrentFixedSizeCache<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentFixedSizeCache(int size) ConcurrentFixedSizeCache(int size, boolean accessOrder) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ConcurrentFixedSizeCache
public ConcurrentFixedSizeCache(int size) -
ConcurrentFixedSizeCache
public ConcurrentFixedSizeCache(int size, boolean accessOrder)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-