public class Tree
extends java.lang.Object
Constructor and Description |
---|
Tree(java.lang.Object data) |
Modifier and Type | Method and Description |
---|---|
Tree |
append(java.lang.Object data) |
void |
appendTree(Tree child) |
java.util.Iterator |
children() |
java.util.Iterator |
dfs() |
java.lang.Object |
getData() |
Tree |
getFirst() |
Tree |
getLast() |
Tree |
getNext() |
Tree |
getNextPreorder() |
Tree |
getParent() |
Tree |
getPrevious() |
Tree |
getPreviousPreorder() |
java.util.Iterator |
iterator() |
void |
setData(java.lang.Object data) |
public java.lang.Object getData()
public void setData(java.lang.Object data)
public Tree getParent()
public Tree getNext()
public Tree getNextPreorder()
public Tree getPreviousPreorder()
public Tree getPrevious()
public Tree getFirst()
public Tree getLast()
public Tree append(java.lang.Object data)
public void appendTree(Tree child)
public java.util.Iterator children()
public java.util.Iterator dfs()
public java.util.Iterator iterator()