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 Details

    • getNext

      @NotNull NODE_TYPE getNext(@NotNull NODE_TYPE node)
      Get the next node after the input node.
      Parameters:
      node - The input node
      Returns:
      The input node's next node
    • setNext

      void setNext(@NotNull NODE_TYPE node, @NotNull NODE_TYPE other)
      Set the input node's next node.
      Parameters:
      node - The input node
      other - The input node's new next node
    • getPrev

      @NotNull NODE_TYPE getPrev(@NotNull NODE_TYPE node)
      Get the previous node before the input node.
      Parameters:
      node - The input node
      Returns:
      The input node's previous node
    • setPrev

      void setPrev(@NotNull NODE_TYPE node, @NotNull NODE_TYPE other)
      Set the input node's previous node.
      Parameters:
      node - The input node
      other - The input node's new previous node