removeFirst abstract method

E removeFirst()

Removes and returns the element with the highest priority.

Repeatedly calling this method, without adding element in between, is guaranteed to return elements in non-decreasing order as, specified by the comparison constructor parameter.

The queue must not be empty when this method is called.

Implementation

E removeFirst();