Package org.simpleframework.xml.util
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 java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.simpleframework.xml.util.LimitedCache
cache, contains, fetch, removeEldestEntry, takeMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, 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, sizeMethods inherited from interface java.util.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.
-