org.apache.jcs.engine.memory.util
Class DoubleLinkedListNode

java.lang.Object
  extended byorg.apache.jcs.engine.memory.util.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.

See Also:
Serialized Form

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

Field Detail

prev

public DoubleLinkedListNode prev
Double Linked list references


next

public DoubleLinkedListNode next
Double Linked list references

Constructor Detail

DoubleLinkedListNode

public DoubleLinkedListNode(java.lang.Object payloadP)
Method Detail

getPayload

public java.lang.Object getPayload()
Returns:
Object


Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.