public abstract class TreeNode<T extends TreeNode>
extends java.lang.Object
class MyTree extends TreeNode<MyTree> { ... }
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<T> |
children |
Constructor and Description |
---|
TreeNode() |
Modifier and Type | Method and Description |
---|---|
void |
add(T child) |
java.util.List<T> |
getChidren() |
boolean |
hasChildren() |