Interface IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE>
- Type Parameters:
NODE_TYPE
-
- All Known Implementing Classes:
IntrusiveDoublyLinkedNode.Adapter
- Enclosing class:
- IntrusiveDoublyLinkedStructureBase<VALUE_TYPE>
public static interface IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE>
Adapter interface for nodes with intrusively-stored previous and next nodes.
-
Method Summary
Modifier and TypeMethodDescriptionGet the next node after the input node.Get the previous node before the input node.void
Set the input node's next node.void
Set the input node's previous node.
-
Method Details
-
getNext
Get the next node after the input node.- Parameters:
node
- The input node- Returns:
- The input node's next node
-
setNext
Set the input node's next node.- Parameters:
node
- The input nodeother
- The input node's new next node
-
getPrev
Get the previous node before the input node.- Parameters:
node
- The input node- Returns:
- The input node's previous node
-
setPrev
Set the input node's previous node.- Parameters:
node
- The input nodeother
- The input node's new previous node
-