Changes the priority of value
to priority
.
Changes the priority of value
to priority
.
Throws IllegalArgumentException
of value
is not in
the priority queue.
Inserts value
with priority
into the priority queue.
Returns true
if the priority queue is empty.
Removes the lowest-priority element from the priority queue.
Removes the lowest-priority element from the priority queue.
Returns a pair containing the lowest-priority element and its priority.
Throws IllegalArgumentException
if the priority queue is
empty.