public interface PriorityQueueNode
DefaultPriorityQueue
to maintain internal state. These methods should generally not be
used outside the scope of DefaultPriorityQueue
.限定符和类型 | 字段和说明 |
---|---|
static int |
INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned by
priorityQueueIndex(DefaultPriorityQueue) . |
限定符和类型 | 方法和说明 |
---|---|
int |
priorityQueueIndex(DefaultPriorityQueue<?> queue)
Get the last value set by
priorityQueueIndex(DefaultPriorityQueue, int) for the value corresponding to
queue . |
void |
priorityQueueIndex(DefaultPriorityQueue<?> queue,
int i)
Used by
DefaultPriorityQueue to maintain state for an element in the queue. |
static final int INDEX_NOT_IN_QUEUE
priorityQueueIndex(DefaultPriorityQueue)
.int priorityQueueIndex(DefaultPriorityQueue<?> queue)
priorityQueueIndex(DefaultPriorityQueue, int)
for the value corresponding to
queue
.
Throwing exceptions from this method will result in undefined behavior.
void priorityQueueIndex(DefaultPriorityQueue<?> queue, int i)
DefaultPriorityQueue
to maintain state for an element in the queue.
Throwing exceptions from this method will result in undefined behavior.
queue
- The queue for which the index is being set.i
- The index as used by DefaultPriorityQueue
.