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 TypeMethodDescriptiongetId()Get the identifier of the node.intgetLeft()Get the left value of the node in the nested set.Get the parent node of this node.intgetRight()Get the right value of the node in the nested set.voidsetLeft(int left) Set the left value of the node in the nested set.voidsetParent(INestedSetNode<ID, T> parent) Set the parent node of this node.voidsetRight(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
Set the parent node of this node.- Parameters:
parent- The parent node to set.
-