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
clone, containsKey, entrySet, isEmpty, keySet, putAll, size, values
equals, hashCode, toString
public void clear()
protected boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry
in class LinkedHashMap<K,V>
public void exclusiveLock()
public void release()
Copyright © 2016 WSO2. All Rights Reserved.