public interface Tree extends Node
Tree
interface extends the Node
interface and adds a method to retrieve a List
of child Node
s.
It also adds a Tree.Builder
interface, such that you can build immutable versions of it.
Modifier and Type | Interface and Description |
---|---|
static interface |
Tree.Builder<T extends Node>
A
Builder allows you to build immutable Tree s. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
getNodes()
Returns the
Node s currently added to this Tree . |