public interface PriorityQueueNode
DefaultPriorityQueue to maintain internal state. These methods should generally not be
used outside the scope of DefaultPriorityQueue.| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned by
priorityQueueIndex(DefaultPriorityQueue). |
| Modifier and Type | Method and Description |
|---|---|
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.Copyright © 2008–2024 The Netty Project. All rights reserved.