public class LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LRUCache(int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
exclusiveLock() |
V |
get(Object key) |
protected void |
handleRemovableEntry(Map.Entry<K,V> entry) |
V |
put(K key,
V value) |
void |
release() |
V |
remove(Object key) |
protected boolean |
removeEldestEntry(Map.Entry eldest) |
containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, size
public void clear()
protected boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry
in class LinkedHashMap<K,V>
public void exclusiveLock()
public void release()
Copyright © 2019 WSO2. All Rights Reserved.