类 LRUCache<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- com.mysql.cj.util.LRUCache<K,V>
-
- 所有已实现的接口:
Serializable,Cloneable,Map<K,V>
public class LRUCache<K,V> extends LinkedHashMap<K,V>
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected intmaxElements
-
构造器概要
构造器 构造器 说明 LRUCache(int maxSize)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleanremoveEldestEntry(Map.Entry<K,V> eldest)-
从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
从类继承的方法 java.util.AbstractMap
equals, hashCode, toString
-
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
方法详细资料
-
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
- 覆盖:
removeEldestEntry在类中LinkedHashMap<K,V>
-
-