Priority queue implementation.
Element that implemented Comparable interface.
Initial capacity.
Creates a priority queue with the specified capacity.
Removes all elements from the queue.
Returns true if the queue is empty.
true
Returns the element with the highest priority.
Removes the element with the highest priority.
Adds the specified element to the queue.
Removes the specified element from the queue.