K - keyV - valuepublic class LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
V |
get(Object key) |
int |
getMaxCapacity() |
void |
lock() |
V |
put(K key,
V value) |
void |
releaseLock() |
V |
remove(Object key) |
void |
setMaxCapacity(int maxCapacity) |
int |
size() |
containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replaceequals, hashCode, toStringcompute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replacepublic boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class HashMap<K,V>public int size()
public void clear()
public void lock()
public void releaseLock()
public int getMaxCapacity()
public void setMaxCapacity(int maxCapacity)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.