程序包 cool.scx.util
类 Cache<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
cool.scx.util.Cache<K,V>
- 类型参数:
K- aV- a
- 所有已实现的接口:
Serializable,Cloneable,Map<K,V>
Cache class.
- 版本:
- 0.0.1
- 作者:
- scx567888
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
构造器概要
构造器 -
方法概要
从类继承的方法 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
-
构造器详细资料
-
Cache
public Cache(int maxCount) Constructor for Cache.
- 参数:
maxCount- a int
-
-
方法详细资料
-
removeEldestEntry
- 覆盖:
removeEldestEntry在类中LinkedHashMap<K,V>
-