Public Methods | |
Tree () | |
Collection | get (TreeNode n) |
TreeNode | getRoot () |
String | toString () |
Private Methods | |
void | setRoot (TreeNode r) |
Private Attributes | |
TreeNode | root |
Definition at line 12 of file Tree.java.
|
Creates a new tree with no nodes. |
|
Gets all the node equal to a given one. |
|
Returns the root of the tree. |
|
Sets a new root. Definition at line 39 of file Tree.java. Referenced by TreeNode::TreeNode().
|
|
Returns a string rapresentation of the tree. |
|
The root of the tree. |