public class LruMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Serializable
LinkedHashMap,
序列化表格AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private Map<K,V> |
delegate |
private Map<K,Object> |
keys |
private static long |
serialVersionUID |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Set<K> |
keySet() |
protected void |
onEviction(K key,
V eldestValue) |
V |
put(K key,
V value) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, replaceAllprivate static final long serialVersionUID
public boolean containsValue(Object value)
containsValue 在接口中 Map<K,V>containsValue 在类中 AbstractMap<K,V>public boolean containsKey(Object key)
containsKey 在接口中 Map<K,V>containsKey 在类中 AbstractMap<K,V>public Collection<V> values()
public String toString()
toString 在类中 AbstractMap<K,V>Copyright © 2020. All rights reserved.