-
public interface PriorityQueueNode
Provides methods forDefaultPriorityQueue
to maintain internal state. These methods should generally not be used outside the scope ofDefaultPriorityQueue
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue)
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
priorityQueueIndex(DefaultPriorityQueue<?> queue)
Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)
for the value corresponding toqueue
.void
priorityQueueIndex(DefaultPriorityQueue<?> queue, int i)
Used byDefaultPriorityQueue
to maintain state for an element in the queue.
-
-
-
Field Detail
-
INDEX_NOT_IN_QUEUE
static final int INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue)
.- See Also:
- Constant Field Values
-
-
Method Detail
-
priorityQueueIndex
int priorityQueueIndex(DefaultPriorityQueue<?> queue)
Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)
for the value corresponding toqueue
.Throwing exceptions from this method will result in undefined behavior.
-
priorityQueueIndex
void priorityQueueIndex(DefaultPriorityQueue<?> queue, int i)
Used byDefaultPriorityQueue
to 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
.
-
-