Package uk.blankaspect.common.tree
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
T getParent()Returns the parent of this node.- Returns:
- the parent of this node.
-
getChildren
Returns a list of the children of this node.- Returns:
- a list of the children of this node.
-
isLeaf
default boolean isLeaf()Returnstrueif this node is a leaf node (ie, it has no children).- Returns:
trueif this node is a leaf node.
-