|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreePosition<E>
Interface for a node of a binary tree. It maintains an element, a parent node, a left node, and a right node.
Method Summary | |
---|---|
PositionList<Position<E>> |
getChildren()
Returns the children of this position |
TreePosition<E> |
getParent()
Returns the parent of this position |
void |
setChildren(PositionList<Position<E>> c)
Sets the right child of this position |
void |
setElement(E o)
|
void |
setParent(TreePosition<E> v)
Sets the parent of this position |
Methods inherited from interface net.datastructures.Position |
---|
element |
Method Detail |
---|
void setElement(E o)
PositionList<Position<E>> getChildren()
void setChildren(PositionList<Position<E>> c)
TreePosition<E> getParent()
void setParent(TreePosition<E> v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |