|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BTPosition<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 | |
---|---|
BTPosition<E> |
getLeft()
Returns the left child of this position |
BTPosition<E> |
getParent()
Returns the parent of this position |
BTPosition<E> |
getRight()
Returns the right child of this position |
void |
setElement(E o)
Sets the element stored at this position |
void |
setLeft(BTPosition<E> v)
Sets the left child of this position |
void |
setParent(BTPosition<E> v)
Sets the parent of this position |
void |
setRight(BTPosition<E> v)
Sets the right child of this position |
Methods inherited from interface net.datastructures.Position |
---|
element |
Method Detail |
---|
void setElement(E o)
BTPosition<E> getLeft()
void setLeft(BTPosition<E> v)
BTPosition<E> getRight()
void setRight(BTPosition<E> v)
BTPosition<E> getParent()
void setParent(BTPosition<E> v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |