//---------------------------------------------------------------------------- // PriQueueInterface.java by Dale/Joyce/Weems Chapter 9 // // Interface for a class that implements a priority queue of Comparable objects. //---------------------------------------------------------------------------- package ch09.priorityQueues; public interface PriQueueInterface> { boolean isEmpty(); boolean isFull(); void enqueue(T element); // Throws PriQOverflowException if this priority queue is full; // otherwise, adds element to this priority queue. T dequeue(); // Throws PriQUnderflowException if this priority queue is empty; // otherwise, removes and returns an element with highest priority } // Local Variables: // compile-command: "cd ../..; javac ch09/priorityQueues/PriQueueInterface.java" // End: