I want to augment or lower the priority of items in a PriorityQueue
: for example, I might be downloading a long list of images and suddenly want the thirtieth one t
If you iterate over a priority queue, you will find it is in no particular order (except the first element) If you want to change the order, I suggest you create another priority queue.
If you wan to change the position of one entry, I suggest you remove it, change its fields as required and add it again.