public interface PriorityQueue<T>
extends java.util.Queue<T>
限定符和类型 | 方法和说明 |
---|---|
void |
clearIgnoringIndexes()
Removes all of the elements from this
PriorityQueue without calling
PriorityQueueNode.priorityQueueIndex(DefaultPriorityQueue) or explicitly removing references to them to
allow them to be garbage collected. |
boolean |
containsTyped(T node)
Same as
Collection.contains(Object) but typed using generics. |
void |
priorityChanged(T node)
Notify the queue that the priority for
node has changed. |
boolean |
removeTyped(T node)
Same as
Collection.remove(Object) but typed using generics. |
boolean removeTyped(T node)
Collection.remove(Object)
but typed using generics.boolean containsTyped(T node)
Collection.contains(Object)
but typed using generics.void priorityChanged(T node)
node
has changed. The queue will adjust to ensure the priority
queue properties are maintained.node
- An object which is in this queue and the priority may have changed.void clearIgnoringIndexes()
PriorityQueue
without calling
PriorityQueueNode.priorityQueueIndex(DefaultPriorityQueue)
or explicitly removing references to them to
allow them to be garbage collected. This should only be used when it is certain that the nodes will not be
re-inserted into this or any other PriorityQueue
and it is known that the PriorityQueue
itself
will be garbage collected after this call.