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()
HeapPriorityQueueElement
HeapPriorityQueue
.getInternalIndex
in interface HeapPriorityQueueElement
public void setInternalIndex(int newIndex)
HeapPriorityQueueElement
HeapPriorityQueue
and should only be
called by the owning HeapPriorityQueue
.setInternalIndex
in interface HeapPriorityQueueElement
newIndex
- the new index in the timer heap.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.