data_structures_free
This commit is contained in:
20
net/datastructures/BTPosition.java
Normal file
20
net/datastructures/BTPosition.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package net.datastructures;
|
||||
//begin#fragment BTPos
|
||||
/**
|
||||
* Interface for a node of a binary tree. It maintains an element, a
|
||||
* parent node, a left node, and a right node.
|
||||
//end#fragment BTPos
|
||||
*
|
||||
* @author Michael Goodrich
|
||||
//begin#fragment BTPos
|
||||
*/
|
||||
public interface BTPosition<E> extends Position<E> { // inherits element()
|
||||
public void setElement(E o);
|
||||
public BTPosition<E> getLeft();
|
||||
public void setLeft(BTPosition<E> v);
|
||||
public BTPosition<E> getRight();
|
||||
public void setRight(BTPosition<E> v);
|
||||
public BTPosition<E> getParent();
|
||||
public void setParent(BTPosition<E> v);
|
||||
}
|
||||
//end#fragment BTPos
|
||||
Reference in New Issue
Block a user