public class Tree<T> extends Object
| Constructor and Description |
|---|
Tree() |
| Modifier and Type | Method and Description |
|---|---|
List<Node<T>> |
climb(Node<T> n) |
Node<T> |
get(String name)
Quick access to any node in the tree.
|
Node<T> |
getRootElement()
Return the root Node of the tree.
|
void |
setRootElement(Node<T> rootElement)
Set the root Element for the tree.
|
List<Node<T>> |
toList()
Returns the Tree
|
String |
toString()
Returns a String representation of the Tree.
|
public Node<T> get(String name)
name - public Node<T> getRootElement()
public void setRootElement(Node<T> rootElement)
rootElement - the root element to set.public List<Node<T>> toList()
public String toString()
Copyright © 2007-2022. All Rights Reserved.