org.apache.jcs.utils.struct
Class DoubleLinkedListNode<T>

java.lang.Object
  extended by org.apache.jcs.utils.struct.DoubleLinkedListNode<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LRUElementDescriptor, MemoryElementDescriptor

public class DoubleLinkedListNode<T>
extends Object
implements Serializable

This serves as a placeholder in a double linked list. You can extend this to add functionality. This allows you to remove in constant time from a linked list.

It simply holds the payload and a reference to the items before and after it in the list.

See Also:
Serialized Form

Field Summary
 DoubleLinkedListNode<T> next
          Double Linked list references
 DoubleLinkedListNode<T> prev
          Double Linked list references
 
Constructor Summary
DoubleLinkedListNode(T payloadP)
           
 
Method Summary
 T getPayload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prev

public DoubleLinkedListNode<T> prev
Double Linked list references


next

public DoubleLinkedListNode<T> next
Double Linked list references

Constructor Detail

DoubleLinkedListNode

public DoubleLinkedListNode(T payloadP)
Parameters:
payloadP -
Method Detail

getPayload

public T getPayload()
Returns:
Object


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