Class CacheMap<K,​V>

    • Constructor Detail

      • CacheMap

        public CacheMap​(int capacity)
    • Method Detail

      • removeEldestEntry

        protected boolean removeEldestEntry​(Map.Entry<K,​V> eldest)
        removeEldestEntry() should be overridden by the user, otherwise it will not remove the oldest object from the Map.
        Overrides:
        removeEldestEntry in class LinkedHashMap<K,​V>