Class LRUCache.LRUCacheEntry<K,​V>

  • Enclosing class:
    LRUCache<K,​V>

    public class LRUCache.LRUCacheEntry<K,​V>
    extends Object
    Double linked cell used as entry in the cache list.
    • Constructor Detail

      • LRUCacheEntry

        protected LRUCacheEntry​(K key,
                                V value)
        Creates a new double linked cell, storing the object we want to cache and the key that is used to retrieve it.
        Parameters:
        key - The key
        value - The value
    • Method Detail

      • getKey

        public K getKey()
        Get key
        Returns:
        The value
      • getValue

        public V getValue()
        Get value
        Returns:
        The value
      • updateTimestamp

        public void updateTimestamp()
        Update timestamp
      • reset

        public void reset()
        Reset