public class LRUMapCache<E,F> extends LinkedHashMap<E,F>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHE_SIZE |
static float |
DEFAULT_LOAD_FACTOR |
| Constructor and Description |
|---|
LRUMapCache() |
LRUMapCache(int cache) |
LRUMapCache(int cache,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(Map.Entry<E,F> entry) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static int DEFAULT_CACHE_SIZE
public static float DEFAULT_LOAD_FACTOR
public LRUMapCache()
public LRUMapCache(int cache)
public LRUMapCache(int cache,
float loadFactor)
protected boolean removeEldestEntry(Map.Entry<E,F> entry)
removeEldestEntry in class LinkedHashMap<E,F>Copyright © 2015. All rights reserved.