net.datastructures
Interface TreePosition<E>
- All Superinterfaces:
- Position<E>
- All Known Implementing Classes:
- TreeNode
public interface TreePosition<E>
- extends Position<E>
Interface for a node of a binary tree. It maintains an element, a
parent node, a left node, and a right node.
//end#fragment TPos
- Author:
- Michael Goodrich
//begin#fragment TPos
setElement
void setElement(E o)
getChildren
PositionList<Position<E>> getChildren()
setChildren
void setChildren(PositionList<Position<E>> c)
getParent
TreePosition<E> getParent()
setParent
void setParent(TreePosition<E> v)