Package net.handle.util
Class LRUCacheTable<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
net.handle.util.LRUCacheTable<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()intbooleanisEmpty()keySet()voidvoidsetMaxSize(int newsize) intsize()values()Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toStringMethods 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
-
LRUCacheTable
public LRUCacheTable(int maxsize)
-
-
Method Details
-
size
public int size() -
getMaxSize
public int getMaxSize() -
setMaxSize
public void setMaxSize(int newsize) -
put
-
remove
-
clear
public void clear() -
get
-
entrySet
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
values
-