Modifier and Type | Field and Description |
---|---|
java.util.List<TreeNode<T>> |
children |
T |
data |
TreeNode<T> |
parent |
Modifier and Type | Method and Description |
---|---|
TreeNode<T> |
addChild(T child) |
TreeNode<T> |
findTreeNode(java.lang.Comparable<T> cmp) |
int |
getLevel() |
boolean |
isLeaf() |
boolean |
isRoot() |
java.util.Iterator<TreeNode<T>> |
iterator() |
java.lang.String |
toString() |