org.apache.jcs.utils.struct
Class LRUElementDescriptor<K,V>

java.lang.Object
  extended by org.apache.jcs.utils.struct.DoubleLinkedListNode<V>
      extended by org.apache.jcs.utils.struct.LRUElementDescriptor<K,V>
All Implemented Interfaces:
Serializable

public class LRUElementDescriptor<K,V>
extends DoubleLinkedListNode<V>

This is a node in the double linked list. It is stored as the value in the underlying map used by the LRUMap class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jcs.utils.struct.DoubleLinkedListNode
next, prev
 
Constructor Summary
LRUElementDescriptor(K key, V payloadP)
           
 
Method Summary
 K getKey()
           
 void setKey(K key)
           
 
Methods inherited from class org.apache.jcs.utils.struct.DoubleLinkedListNode
getPayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUElementDescriptor

public LRUElementDescriptor(K key,
                            V payloadP)
Parameters:
key -
payloadP -
Method Detail

setKey

public void setKey(K key)
Parameters:
key - The key to set.

getKey

public K getKey()
Returns:
Returns the key.


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.