Class Resolver.Cache

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.util.List<M>>, Cache<java.util.List<M>>
    Enclosing class:
    Resolver<M extends Match>

    private class Resolver.Cache
    extends LimitedCache<java.util.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

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Cache()
      Constructor for the Cache object.
    • Method Summary

      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.simpleframework.xml.util.Cache

        isEmpty
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • Cache

        public Cache()
        Constructor for the Cache object. This is a constructor that creates the linked hash map such that it will purge the entries that are oldest within the map.