Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myBtree;
- import java.util.function.Consumer;
- import java.util.Optional;
- public abstract class Btree<T extends Comparable<T>> {
- public abstract void display(Consumer<T> func);
- public abstract Btree<T> add(T data);
- public abstract Optional<Btree<T>> find(T data);
- public abstract boolean isEmpty();
- public abstract Btree<T> remove(T data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement