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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
int
boolean
isEmpty()
keySet()
void
void
setMaxSize
(int newsize) int
size()
values()
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
values
-