T
- type of data associated with the nodepublic interface TreeNode<T>
Modifier and Type | Method and Description |
---|---|
default void |
addChildren(List<? extends TreeNode<?>> nodes)
Adds the given list of children to this node.
|
List<TreeNode<?>> |
children()
Gets the node's children.
|
T |
data()
Gets the data associated with the node.
|
TreeNode<?> |
parent()
Gets the parent of this node.
|
void |
setParent(TreeNode<?> parent) |
T data()
TreeNode<?> parent()
void setParent(TreeNode<?> parent)
List<TreeNode<?>> children()
Copyright © 2015–2022 SciJava. All rights reserved.