K - V - public class LRUCache<K,V>
extends java.util.LinkedHashMap<K,V>
Implementation of a Least Recently Used cache. Currently used by the ReflectionEngine to cache resolution of Java members.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHE_SIZE |
| 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, sizepublic static final int DEFAULT_CACHE_SIZE