Interface ITreeNode<T>
-
- Type Parameters:
T
- the type of the payload
- All Known Implementing Classes:
TreeNode
public interface ITreeNode<T>
A node in a tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(ITreeVisitor<T> visitor)
java.util.List<ITreeNode<T>>
getChildren()
ITreeNode<T>
getParent()
T
getValue()
-
-
-
Method Detail
-
getChildren
java.util.List<ITreeNode<T>> getChildren()
- Returns:
- the children of the the node, or the empty list if there are no children
-
getValue
T getValue()
- Returns:
- the payload of the tree node
-
accept
void accept(ITreeVisitor<T> visitor)
- Parameters:
visitor
- a tree node visitor
-
-