|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of elements maintained by this treepublic interface RootedTree<T>
An interface for a rooted tree.
| Method Summary | |
|---|---|
void |
createRoot()
Creates the root of this tree. |
RootedTreeNode<T> |
getRoot()
Returns the root of this tree. |
boolean |
hasRoot()
Returns true if this tree has the root; otherwise returns false. |
void |
setRoot(RootedTreeNode<T> root)
Sets the specified node to the root of this tree. |
| Methods inherited from interface net.junaraki.libtree.Tree |
|---|
contains, getHeight, isEmpty, search, size |
| Method Detail |
|---|
void createRoot()
RootedTreeNode<T> getRoot()
void setRoot(RootedTreeNode<T> root)
root - boolean hasRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||