K - key typeV - value typeSerializable, Cloneable, Map<K,V>static class SI.LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
private int |
maxEntries |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
equals, hashCode, toStringclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuespublic LRUCache(int maxEntries)
public LRUCache(int maxEntries,
float loadFactor)
protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
removeEldestEntry 在类中 LinkedHashMap<K,V>Copyright © 2023 io-fairy. All rights reserved.