- <init>
Creates a PriorityQueue containing the elements in the specified sorted set.
This priority queue wil
- add
Inserts the specified element into this priority queue.
- poll
Gets and removes the head of the queue.
- isEmpty
- peek
Gets but does not remove the head of the queue.
- size
Gets the size of the priority queue. If the size of the queue is greater than
the Integer.MAX, then
- remove
Removes a single instance of the specified element from this queue, if it is
present. More formally,
- offer
Inserts the specified element into this priority queue.
- clear
Removes all of the elements from this priority queue. The queue will be empty
after this call return
- addAll
- iterator
Returns an iterator over the elements in this queue. The iterator does not
return the elements in an
- toArray
Returns an array containing all of the elements in this queue; the runtime type
of the returned arra