|
||||||||||
| 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 Tree<T>
An interface for a tree.
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Object o)
Returns true if this tree contains a node with the specified element; otherwise returns false. |
int |
getHeight()
Returns the height of this tree. |
boolean |
isEmpty()
Returns true if this tree contains no elements. |
TreeNode<T> |
search(java.lang.Object o)
Returns the node of this tree with the specified element. |
int |
size()
Returns the size of this tree, i.e., the number of elements in this tree. |
| Method Detail |
|---|
int size()
boolean isEmpty()
int getHeight()
boolean contains(java.lang.Object o)
o -
TreeNode<T> search(java.lang.Object o)
o -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||