Class IntrusiveDoublyLinkedNode.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
java.lang.Object
io.deephaven.util.datastructures.linked.IntrusiveDoublyLinkedNode.Adapter<NODE_TYPE>
- All Implemented Interfaces:
IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE>
- Enclosing interface:
- IntrusiveDoublyLinkedNode<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
public static class IntrusiveDoublyLinkedNode.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
extends Object
implements IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE>
Generic
IntrusiveDoublyLinkedStructureBase.Adapter
usable with any implementing class.-
Method Summary
Modifier and TypeMethodDescriptionstatic <NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE>Get 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
-
getInstance
public static <NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>> IntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE> getInstance() -
getNext
Description copied from interface:IntrusiveDoublyLinkedStructureBase.Adapter
Get the next node after the input node.- Specified by:
getNext
in interfaceIntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
- Parameters:
node
- The input node- Returns:
- The input node's next node
-
setNext
Description copied from interface:IntrusiveDoublyLinkedStructureBase.Adapter
Set the input node's next node.- Specified by:
setNext
in interfaceIntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
- Parameters:
node
- The input nodeother
- The input node's new next node
-
getPrev
Description copied from interface:IntrusiveDoublyLinkedStructureBase.Adapter
Get the previous node before the input node.- Specified by:
getPrev
in interfaceIntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
- Parameters:
node
- The input node- Returns:
- The input node's previous node
-
setPrev
Description copied from interface:IntrusiveDoublyLinkedStructureBase.Adapter
Set the input node's previous node.- Specified by:
setPrev
in interfaceIntrusiveDoublyLinkedStructureBase.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>
- Parameters:
node
- The input nodeother
- The input node's new previous node
-