public class LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
V |
get(Object key) |
int |
getMaxCapacity() |
V |
put(K key,
V value) |
V |
remove(Object key) |
void |
setMaxCapacity(int maxCapacity) |
int |
size() |
containsValue
equals, hashCode, toString
public boolean containsKey(Object key)
containsKey
在接口中 Map<K,V>
containsKey
在类中 HashMap<K,V>
public int getMaxCapacity()
public void setMaxCapacity(int maxCapacity)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.