net.datastructures
Interface BTPosition
- All Superinterfaces:
- Position
- All Known Implementing Classes:
- BTNode
- public interface BTPosition
- extends Position
Interface for a node of a binary tree. It maintains an element, a
parent node, a left node, and a right node.
- Author:
- Michael Goodrich
setElement
public void setElement(Object o)
getLeft
public BTPosition getLeft()
setLeft
public void setLeft(BTPosition v)
getRight
public BTPosition getRight()
setRight
public void setRight(BTPosition v)
getParent
public BTPosition getParent()
setParent
public void setParent(BTPosition v)