@Internal
public interface HeapPriorityQueueElement
HeapPriorityQueue. Such an object can only
be contained in at most one HeapPriorityQueue at a time.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
NOT_CONTAINED
The index that indicates that a
HeapPriorityQueueElement object is not contained in
and managed by any HeapPriorityQueue. |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2023 The Apache Software Foundation. All rights reserved.