public final class TreeNode<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> TreeNode<T> |
copy(T root,
TreeDef<T> treeDef)
Creates a hierarchy of TreeNodes that copies the structure and content of the given Tree.
|
java.util.List<TreeNode<T>> |
getChildren() |
T |
getObj() |
TreeNode<T> |
getParent() |
static <T> TreeDef.Parented<TreeNode<T>> |
treeDef()
TreeDef for the generic TreeNode class.
|
public T getObj()
public static <T> TreeNode<T> copy(T root, TreeDef<T> treeDef)
public static <T> TreeDef.Parented<TreeNode<T>> treeDef()