public class LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private int |
maxSize |
private static long |
serialVersionUID |
| 构造器和说明 |
|---|
LRUCache(int maxSize) |
LRUCache(int maxSize,
int initialCapacity,
float loadFactor,
boolean accessOrder) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeprivate static final long serialVersionUID
private final int maxSize
public LRUCache(int maxSize)
public LRUCache(int maxSize,
int initialCapacity,
float loadFactor,
boolean accessOrder)
protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
removeEldestEntry 在类中 LinkedHashMap<K,V>Copyright © 2013–2019 Alibaba Group. All rights reserved.