public class LRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
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() |
containsValueequals, hashCode, toStringpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class HashMap<K,V>public int size()
public void clear()
public int getMaxCapacity()
public void setMaxCapacity(int maxCapacity)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.