Files
unisa_strutture_dati_2013_2014/tree/binarytree/BinaryTree.java

21 lines
583 B
Java

package tree.binarytree;
import exceptions.BoundaryViolationException;
import exceptions.InvalidPositionException;
import position.Position;
import tree.Tree;
public interface BinaryTree<E> extends Tree<E> {
public Position<E> left(Position<E> v) throws InvalidPositionException, BoundaryViolationException;
public Position<E> right(Position<E> v) throws InvalidPositionException, BoundaryViolationException;
public boolean hasLeft(Position<E> v) throws InvalidPositionException;
public boolean hasRight(Position<E> v) throws InvalidPositionException;
}