Interface IntrusiveSinglyLinkedQueue.Adapter<NODE_TYPE>

Type Parameters:
NODE_TYPE -
Enclosing class:
IntrusiveSinglyLinkedQueue<VALUE_TYPE>

public static interface IntrusiveSinglyLinkedQueue.Adapter<NODE_TYPE>
Adapter interface for nodes with intrusively-stored next nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the next node after the input node.
    void
    setNext(NODE_TYPE node, NODE_TYPE other)
    Set the input node's next node.
  • Method Details

    • getNext

      @Nullable 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, @Nullable NODE_TYPE other)
      Set the input node's next node.
      Parameters:
      node - The input node
      other - The input node's new next node