Package com.fasterxml.classmate.util
Class LRUTypeCache.CacheMap
java.lang.Object
java.util.AbstractMap<ResolvedTypeKey,ResolvedType>
java.util.HashMap<ResolvedTypeKey,ResolvedType>
java.util.LinkedHashMap<ResolvedTypeKey,ResolvedType>
com.fasterxml.classmate.util.LRUTypeCache.CacheMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<ResolvedTypeKey,ResolvedType>
- Enclosing class:
LRUTypeCache
private static final class LRUTypeCache.CacheMap
extends LinkedHashMap<ResolvedTypeKey,ResolvedType>
Simple sub-class to get LRU cache
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Field Details
-
_maxEntries
protected final int _maxEntries
-
-
Constructor Details
-
CacheMap
public CacheMap(int maxEntries)
-
-
Method Details
-
removeEldestEntry
- Overrides:
removeEldestEntryin classLinkedHashMap<ResolvedTypeKey,ResolvedType>
-