Interface PriorityQueueNode
public interface PriorityQueueNode
Provides methods for
DefaultPriorityQueue to maintain internal state. These methods should generally not be
used outside the scope of DefaultPriorityQueue.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue). -
Method Summary
Modifier and TypeMethodDescriptionintpriorityQueueIndex(DefaultPriorityQueue<?> queue) Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)for the value corresponding toqueue.voidpriorityQueueIndex(DefaultPriorityQueue<?> queue, int i) Used byDefaultPriorityQueueto maintain state for an element in the queue.
-
Field Details
-
INDEX_NOT_IN_QUEUE
static final int INDEX_NOT_IN_QUEUEThis should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue).- See Also:
-
-
Method Details
-
priorityQueueIndex
Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)for the value corresponding toqueue.Throwing exceptions from this method will result in undefined behavior.
-
priorityQueueIndex
Used byDefaultPriorityQueueto maintain state for an element in the queue.Throwing exceptions from this method will result in undefined behavior.
- Parameters:
queue- The queue for which the index is being set.i- The index as used byDefaultPriorityQueue.
-