public abstract class AbstractHeapPriorityQueueElement extends Object implements HeapPriorityQueueElement
HeapPriorityQueueElement.NOT_CONTAINED| Constructor and Description |
|---|
AbstractHeapPriorityQueueElement() |
| 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. |
public int getInternalIndex()
HeapPriorityQueueElementHeapPriorityQueue.getInternalIndex in interface HeapPriorityQueueElementpublic void setInternalIndex(int newIndex)
HeapPriorityQueueElementHeapPriorityQueue and should only be
called by the owning HeapPriorityQueue.setInternalIndex in interface HeapPriorityQueueElementnewIndex - the new index in the timer heap.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.