Interface INestedSetNodeResponse
-
- All Implemented Interfaces:
public interface INestedSetNodeResponse<ID extends Object>
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 Type Method Description abstract INestedSetNodeResponse<ID>
withChildren(List<INestedSetNodeResponse<ID>> children)
Set the list of child nodes for this node. abstract ID
getId()
The unique identifier of the node. abstract Integer
getLeft()
The left value of the node in the nested set. abstract Integer
getRight()
The right value of the node in the nested set. abstract List<INestedSetNodeResponse<ID>>
getChildren()
The level of the node in the nested set tree. -
-
Method Detail
-
withChildren
abstract INestedSetNodeResponse<ID> withChildren(List<INestedSetNodeResponse<ID>> children)
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.
-
getChildren
abstract List<INestedSetNodeResponse<ID>> getChildren()
The level of the node in the nested set tree.
-
-
-
-