public class LRUCache<K,V>
extends java.util.LinkedHashMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxElements |
| Constructor and Description |
|---|
LRUCache(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size