Inserts a single element into the priority queue.
Inserts a single element into the priority queue.
the element to insert.
the heap.
Clears the queue.
Clears the queue.
Returns the element with the lowest priority in the queue, and removes this element from the queue.
Returns the element with the lowest priority in the queue, and removes this element from the queue.
the element with the lowest priority.
Checks if the heaps of the two priority queues are equal
Checks if the heaps of the two priority queues are equal
Returns a List containing all the elements of the queue sorted by ascending priority
The hashCode method always yields an error, since it is not safe to use mutable queues as keys in hash tables.
The hashCode method always yields an error, since it is not safe to use mutable queues as keys in hash tables.
never.
Returns the element with the lowest priority in the queue, or throws an error if there is no element contained in the queue.
Returns the element with the lowest priority in the queue, or throws an error if there is no element contained in the queue.
Ordering of data.
Ordering of data.
Returns the element with the corresponding index, and removes this element from the queue.
Returns the element with the corresponding index, and removes this element from the queue.
index of the element to remove
the element with the lowest priority.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Returns a textual representation of a queue as a string.
Returns a textual representation of a queue as a string.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
This class implements priority queues using a min heap. To prioritize elements of type A there must be an implicit Ordering[A] available at creation.
Type of data.