org.apache.jcs.utils.struct
Class DoubleLinkedListNode<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prev
public DoubleLinkedListNode<T> prev
- Double Linked list references
next
public DoubleLinkedListNode<T> next
- Double Linked list references
DoubleLinkedListNode
public DoubleLinkedListNode(T payloadP)
- Parameters:
payloadP -
getPayload
public T getPayload()
- Returns:
- Object
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.