Interface ITreeNode<T extends ITreeNode<T>>
- Type Parameters:
T- the type of the node: a subtype ofITreeNode.
- All Known Implementing Classes:
AbstractNode, BooleanNode, DoubleNode, IntNode, ListNode, LongNode, MapNode, NodeType, NullNode, StringNode
public interface ITreeNode<T extends ITreeNode<T>>
This interface defines the methods that must be implemented by a node of a tree that can be used with the methods of
TreeUtils.-
Method Summary
-
Method Details
-
getParent
-
getChildren
-
isLeaf
default boolean isLeaf()Returnstrueif this node is a leaf node (ie, it has no children).- Returns:
trueif this node is a leaf node.
-