Rather than an explicit priority argument, the priority could be part of the value being added to the priority queue. In this case the priority queue would access value priorities either through the priority comparator or through a priority interface implemented by the values.
This page last modified on 24 January 2006.