T - The type which will be queued in PriorityQueue.public interface PriorityQueueNode<T> extends Comparable<T>
PriorityQueue to maintain internal state. These methods should generally not be used
outside the scope of PriorityQueue.| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned by
priorityQueueIndex(). |
| Modifier and Type | Method and Description |
|---|---|
int |
priorityQueueIndex()
Get the last value set by
priorityQueueIndex(int). |
void |
priorityQueueIndex(int i)
Used by
PriorityQueue to maintain state for an element in the queue. |
compareTostatic final int INDEX_NOT_IN_QUEUE
priorityQueueIndex().int priorityQueueIndex()
priorityQueueIndex(int).
Throwing exceptions from this method will result in undefined behavior.
void priorityQueueIndex(int i)
PriorityQueue to maintain state for an element in the queue.
Throwing exceptions from this method will result in undefined behavior.
i - The index as used by PriorityQueue.Copyright © 2008–2017 The Netty Project. All rights reserved.