1: /** 2: An interface for the ADT maxheap. 3: 4: @author Frank M. Carrano 5: @author Timothy M. Henry 6: @version 5.0 7: */ 8: public interface MaxHeapInterface<T extends Comparable<? super T>> 9: { // See Segment 24.33 for a commented version. 10: public void add(T newEntry); 11: public T removeMax(); 12: public T getMax(); 13: public boolean isEmpty(); 14: public int getSize(); 15: public void clear(); 16: } // end MaxHeapInterface