toList abstract method
Returns a list of the elements of this queue in priority order.
The queue is not modified.
The order is the order that the elements would be in if they were removed from this queue using removeFirst.
Implementation
List<E> toList();