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 Type Method Description NODE_TYPE
getNext(NODE_TYPE node)
Get the next node after the input node.NODE_TYPE
getPrev(NODE_TYPE node)
Get the previous node before the input node.void
setNext(NODE_TYPE node, NODE_TYPE other)
Set the input node's next node.void
setPrev(NODE_TYPE node, NODE_TYPE other)
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
-