org.apache.jcs.utils.struct
Class DoubleLinkedListNode
java.lang.Object
org.apache.jcs.utils.struct.DoubleLinkedListNode
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- LRUElementDescriptor, MemoryElementDescriptor
public class DoubleLinkedListNode
- extends java.lang.Object
- implements java.io.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 prev
- Double Linked list references
next
public DoubleLinkedListNode next
- Double Linked list references
DoubleLinkedListNode
public DoubleLinkedListNode(java.lang.Object payloadP)
- Parameters:
payloadP
-
getPayload
public java.lang.Object getPayload()
- Returns:
- Object
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.