Implementato Binary Tree. Bisogbna testarlo. da implementare il tostring
This commit is contained in:
20
binarytree/BinaryTree.java
Normal file
20
binarytree/BinaryTree.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package 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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user