public static final class SimpleTree.SimpleBuilder extends AbstractTree.AbstractBuilder<Tree>
SimpleBuilder
is a simple implementation of the Tree.Builder
interface.
It uses the design pattern Builder.
Modifier and Type | Method and Description |
---|---|
Tree |
build()
Returns a new (possibly immutable)
SimpleTree instance. |
static SimpleTree.SimpleBuilder |
newInstance()
Returns a new
SimpleBuilder instance. |
addNode, removeNode
public Tree build()
SimpleTree
instance.SimpleTree
instancepublic static SimpleTree.SimpleBuilder newInstance()
SimpleBuilder
instance.SimpleBuilder
instance