Class CacheEntry<K,​V>

    • Constructor Detail

      • CacheEntry

        public CacheEntry​(K key,
                          V value)
    • Method Detail

      • getKey

        public K getKey()
        Description copied from interface: Cache.Entry
        Returns the key corresponding to this entry.
        Specified by:
        getKey in interface Cache.Entry<K,​V>
        Returns:
        the key corresponding to this entry
      • setValue

        public void setValue​(V value)
      • getValue

        public V getValue()
        Description copied from interface: Cache.Entry
        Returns the value stored in the cache when this entry was created.
        Specified by:
        getValue in interface Cache.Entry<K,​V>
        Returns:
        the value corresponding to this entry
      • getLastAccessed

        public long getLastAccessed()
      • getLastModified

        public long getLastModified()
      • setLastAccessed

        public void setLastAccessed​(Long lastAccessed)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object