public class Tree extends Object
Modifier and Type | Field and Description |
---|---|
protected Collection<Tree> |
children |
protected String |
label |
protected Tree |
parent |
Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
Collection<Tree> |
getChildren() |
String |
getLabel() |
Tree |
getParent() |
void |
setChildren(Collection<Tree> children) |
void |
setLabel(String label) |
void |
setParent(Tree parent) |
protected Tree parent
protected Collection<Tree> children
protected String label
public Tree getParent()
public void setParent(Tree parent)
public Collection<Tree> getChildren()
public void setChildren(Collection<Tree> children)
public String getLabel()
public void setLabel(String label)
Copyright © 2016. All rights reserved.