Class LRUCache.LRUCacheEntry<K,V>

java.lang.Object
org.jboss.jca.adapters.jdbc.util.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 Details

    • 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 Details

    • getKey

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

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

      public void setNext(LRUCache<K,V>.LRUCacheEntry<K,V> v)
      Set next
      Parameters:
      v - The value
    • setPrev

      public void setPrev(LRUCache<K,V>.LRUCacheEntry<K,V> v)
      Set prev
      Parameters:
      v - The value
    • updateTimestamp

      public void updateTimestamp()
      Update timestamp
    • reset

      public void reset()
      Reset
    • toString

      public String toString()
      Overrides:
      toString in class Object