/** * CSE 373, Winter 2011, Jessica Miller * An interface that defines the operations for a PrioityQueue ADT for ints. */ public interface IntPriorityQueue { /** * Adds an int to the priority queue. */ public void add(int value); /** * Tests if the priority queue is empty. */ public boolean isEmpty(); /** * Returns, but does not delete the element at the front of the priority * queue. * @return the minimum value in the priority queue * @throws IllegalStateException if priority queue is empty */ public int peek(); /** * Deletes and returns the minimum element in the priority queue. * @return the minimum value in the priority queue * @throws IllegalStateException if priority queue is empty */ public int remove(); }