Interface INestedSetNode<ID,T extends INestedSetNode<ID,T>>

Type Parameters:
ID - Type of the node identifier.
T - Type of the nested set node.

public interface INestedSetNode<ID,T extends INestedSetNode<ID,T>>
Interface representing a node in a nested set tree structure. This interface defines the basic properties and methods for a nested set node.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the identifier of the node.
    int
    Get the left value of the node in the nested set.
    Get the parent node of this node.
    int
    Get the right value of the node in the nested set.
    void
    setLeft(int left)
    Set the left value of the node in the nested set.
    void
    Set the parent node of this node.
    void
    setRight(int right)
    Set the right value of the node in the nested set.
  • Method Details

    • getId

      ID getId()
      Get the identifier of the node.
      Returns:
      ID The identifier of the node.
    • getLeft

      int getLeft()
      Get the left value of the node in the nested set.
      Returns:
      int The left value of the node.
    • setLeft

      void setLeft(int left)
      Set the left value of the node in the nested set.
      Parameters:
      left - The left value to set.
    • getRight

      int getRight()
      Get the right value of the node in the nested set.
      Returns:
      int The right value of the node.
    • setRight

      void setRight(int right)
      Set the right value of the node in the nested set.
      Parameters:
      right - The right value to set.
    • getParent

      INestedSetNode<ID,T> getParent()
      Get the parent node of this node.
      Returns:
      INestedSetNode The parent node.
    • setParent

      void setParent(INestedSetNode<ID,T> parent)
      Set the parent node of this node.
      Parameters:
      parent - The parent node to set.