Class DoubleLinkedListNode<T>
java.lang.Object
org.apache.commons.jcs3.utils.struct.DoubleLinkedListNode<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LRUElementDescriptor
,MemoryElementDescriptor
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDouble Linked list referencesDouble Linked list references -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
prev
Double Linked list references -
next
Double Linked list references
-
-
Constructor Details
-
DoubleLinkedListNode
- Parameters:
payloadP
-
-
-
Method Details
-
getPayload
- Returns:
- Object
-