java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>public class CacheMap<K,V>
extends java.util.LinkedHashMap<K,V>
| Constructor | Description |
|---|---|
CacheMap(int capacity) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
removeEldestEntry() should be overridden by the user, otherwise it will not
remove the oldest object from the Map.
|
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesCopyright © 2018. All rights reserved.