Add an item to the priority queue ordered by actTime.
Add an item to the priority queue ordered by actTime.
the item to add
Remove the specific item from the priority queue.
Remove the specific item from the priority queue.
the item to remove
Remove and return the first item (least actTime) from the priority queue.
Indicate whether the priority queue is empty.
Indicate whether the priority queue is empty.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Show the contents of the priority queue.
Show the contents of the priority queue.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
(Since version 2.8.0) use iterator' instead
(Since version 2.8.0) use corresponds
instead
(Since version 2.8.0) Use indexWhere(p) instead.
(Since version 2.8.0) use lastIndexWhere
instead
(Since version 2.8.0) use head' instead
(Since version 2.8.0) use headOption' instead
(Since version 2.8.0) use view' instead
(Since version 2.8.0) use reverseIterator' instead
The PQueue class provides a simple linear implementation for priority queues. Once bug in scala 2.8 if fixed, may wish to switch to logarithmic implementation in scala.collection.mutable.PriorityQueue.