Advertisement
saltycracker

Btree.java

Sep 28th, 2020 (edited)
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. package myBtree;
  2.  
  3. import java.util.function.Consumer;
  4. import java.util.Optional;
  5.  
  6. public abstract class Btree<T extends Comparable<T>> {
  7.  
  8.   public abstract void display(Consumer<T> func);
  9.   public abstract Btree<T> add(T data);
  10.   public abstract Optional<Btree<T>> find(T data);
  11.   public abstract boolean isEmpty();
  12.   public abstract Btree<T> remove(T data);
  13.    
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement