
public class SimpleLRUCache<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SimpleLRUCache(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
create(int capacity) |
protected boolean |
removeEldestEntry(Map.Entry<K,V> entry) |
clear, containsValue, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static <K,V> Map<K,V> create(int capacity)
protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry in class LinkedHashMap<K,V>Copyright © 2009–2019 Waarp. All rights reserved.