@Internal
public interface HeapPriorityQueueElement
HeapPriorityQueue. Such an object can only
be contained in at most one HeapPriorityQueue at a time.| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_CONTAINED
The index that indicates that a
HeapPriorityQueueElement object is not contained in
and managed by any HeapPriorityQueue. |
| Modifier and Type | Method and Description |
|---|---|
int |
getInternalIndex()
Returns the current index of this object in the internal array of
HeapPriorityQueue. |
void |
setInternalIndex(int newIndex)
Sets the current index of this object in the
HeapPriorityQueue and should only be
called by the owning HeapPriorityQueue. |
static final int NOT_CONTAINED
HeapPriorityQueueElement object is not contained in
and managed by any HeapPriorityQueue. We do not strictly enforce that internal
indexes must be reset to this value when elements are removed from a HeapPriorityQueue.int getInternalIndex()
HeapPriorityQueue.void setInternalIndex(int newIndex)
HeapPriorityQueue and should only be
called by the owning HeapPriorityQueue.newIndex - the new index in the timer heap.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.