net.sf.infrared.agent.util
Class Tree
java.lang.Object
net.sf.infrared.agent.util.Tree
- All Implemented Interfaces:
- Serializable
- public class Tree
- extends Object
- implements Serializable
Implementation of a Tree data Structure. A node in this tree can represent any data object
- See Also:
- Serialized Form
|
Constructor Summary |
Tree()
Default constructor |
Tree(TreeNode root)
Constructor that creates a Tree with a specified Node as root Node |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tree
public Tree()
- Default constructor
Tree
public Tree(TreeNode root)
- Constructor that creates a Tree with a specified Node as root Node
- Parameters:
root - - root node
getRoot
public TreeNode getRoot()
setRoot
public void setRoot(TreeNode root)
traverseBreadthFirst
public void traverseBreadthFirst(NodeVisitor visitor)
find
public TreeNode find(Object value)