public class Tree<T,S>
extends java.lang.Object
Constructor and Description |
---|
Tree()
Default ctor.
|
Modifier and Type | Method and Description |
---|---|
TreeNode<T,S> |
getRootElement()
Return the root TreeNode of the tree.
|
void |
setRootElement(TreeNode<T,S> rootElement)
Set the root Element for the tree.
|
java.util.List<TreeNode<T,S>> |
toList()
Returns the Tree
|
java.lang.String |
toString()
Returns a String representation of the Tree.
|
public TreeNode<T,S> getRootElement()
public void setRootElement(TreeNode<T,S> rootElement)
rootElement
- the root element to set.public java.util.List<TreeNode<T,S>> toList()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 EDIT. All Rights Reserved.