K
- The key type of the map.V
- The value type of the map.private static class ResourceCacheImpl.LRUMap<K,V>
extends java.util.LinkedHashMap<K,V>
LinkedHashSet
.Modifier and Type | Field and Description |
---|---|
private int |
cacheSize
The size of the cache.
|
private static long |
serialVersionUID
The serial version uid;
|
Constructor and Description |
---|
LRUMap(int cacheSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
private static final long serialVersionUID
private int cacheSize