|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The abstract data type of a generic tree.
Method Summary | |
java.util.ListIterator |
children(TreeNode v)
|
java.lang.Comparable |
element(TreeNode v)
method to get element field. |
boolean |
isLeaf(TreeNode v)
Verifies if the node v is a leaf. |
boolean |
isRoot(TreeNode v)
Verifies if the node v is the root. |
TreeNode |
parent(TreeNode v)
Return the parent node of node v |
TreeNode |
root()
Returns the root of this tree. |
Method Detail |
public java.lang.Comparable element(TreeNode v)
v
- the node.
public TreeNode root()
public TreeNode parent(TreeNode v)
public java.util.ListIterator children(TreeNode v)
public boolean isLeaf(TreeNode v)
v
- the node
public boolean isRoot(TreeNode v)
v
- the node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |