Class LRUCachePolicy.LRUCacheEntry

  • Enclosing class:
    LRUCachePolicy

    public class LRUCachePolicy.LRUCacheEntry
    extends java.lang.Object
    Double linked cell used as entry in the cache list.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LRUCacheEntry​(java.lang.Object key, java.lang.Object object)
      Creates a new double linked cell, storing the object we want to cache and the key that is used to retrieve it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • m_key

        public java.lang.Object m_key
        The key used to retrieve the cached object
      • m_object

        public java.lang.Object m_object
        The cached object
      • m_time

        public long m_time
        The timestamp of the creation
    • Constructor Detail

      • LRUCacheEntry

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

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object