|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeNode<E>
The TreeNode
interface must be supported by any
class defining objects to be used as nodes in a search tree.
Method Summary | |
---|---|
TreeNode |
child(int i)
Returns the ith child of this node. |
boolean |
isFrontier()
Returns true if and only if this tree node is a frontier node. |
TreeNode<E> |
parent()
Returns the parent of this tree node. |
int |
size()
Returns the number of elements held in this tree node. |
Method Detail |
---|
boolean isFrontier()
TreeNode child(int i)
int size()
TreeNode<E> parent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |