Class Resolver.Cache
java.lang.Object
- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,List<M>>, SequencedMap<Object, List<M>>, Cache<List<M>>
This is used to cache resolutions made so that the matches can
be acquired the next time without performing the resolution.
This is an LRU cache so regardless of the number of resolutions
made this will not result in a memory leak for the resolver.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LimitedCache
cache, contains, fetch, removeEldestEntry, takeMethods inherited from class LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
Cache
public Cache()Constructor for theCacheobject. This is a constructor that creates the linked hash map such that it will purge the entries that are oldest within the map.
-