Interface INestedSetNodeResponse<ID>
- Type Parameters:
ID- Type of the node identifier.
public interface INestedSetNodeResponse<ID>
Interface representing a response node in a nested set tree structure.
This interface extends the basic properties of a nested set node with additional methods for handling children.
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of child nodes of this node.intgetLeft()Get the left value of the node in the nested set.intgetRight()Get the right value of the node in the nested set.withChildren(List<INestedSetNodeResponse<ID>> children) Set the list of child nodes for this node.
-
Method Details
-
getLeft
int getLeft()Get the left value of the node in the nested set.- Returns:
- int The left value of the node.
-
getRight
int getRight()Get the right value of the node in the nested set.- Returns:
- int The right value of the node.
-
getChildren
List<INestedSetNodeResponse<ID>> getChildren()Get the list of child nodes of this node.- Returns:
- List The list of child nodes.
-
withChildren
Set the list of child nodes for this node.- Parameters:
children- List The list of child nodes to set.- Returns:
- INestedSetNodeResponse The current node with updated children.
-