/** * CSE 373, Spring 2011, Jessica Miller * An interface that defines the operations for PriorityQueue of integers. */ public interface IntPriorityQueue { /** * Inserts the specified value into this priority queue. * @param value the value to insert into the priority queue */ public void add(int value); /** * Returns true if this priority queue contains no elements. * @return true if this collection contains no elements; false otherwise */ public boolean isEmpty(); /** * Retrieves, but does not remove, the value at the top of this priority queue. * @return the value at the top of this priority queue * @throws NoSuchElementException - if this queue is empty */ public int peek(); /** * Retrieves and removes the value at the top of this priority queue. * @return the value at the top of this priority queue * @throws NoSuchElementException - if this queue is empty */ public int remove(); }