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, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizepublic void clear()
protected boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry in class LinkedHashMap<K,V>public void exclusiveLock()
public void release()
Copyright © 2017 WSO2. All Rights Reserved.