@Generated(date="2017-07-11T19:16:23+0200",
value="KTypePriorityQueue.java")
public interface LongPriorityQueue
extends LongCollection
longs.| Modifier and Type | Method and Description |
|---|---|
void |
add(long k)
Add a
k element in the priority queue |
long |
getDefaultValue()
Returns the "default value" value used
in methods returning "default value"
|
long |
popTop()
Retrieve, and remove the top element of the queue,
i.e. the min element with respect to the comparison criteria
(implementation defined) Returns the default value if empty.
|
void |
setDefaultValue(long defaultValue)
Set the "default value" value to be used
in methods returning "default value"
|
long |
top()
Retrieve, but not remove, the top element of the queue,
i.e. the min element with respect to the comparison criteria
(implementation defined)
of the queue.
|
void |
updatePriorities()
Update priorities of all the elements of the queue, to re-establish the correct priorities
towards the comparison criteria.
|
void |
updateTopPriority()
Update the priority of the
top() element, to re-establish its actual priority
towards the comparison criteria when it may have changed such that it is no longer the
min element with respect to the comparison criteria. |
clear, removeAll, removeAll, removeAll, retainAll, retainAllvoid add(long k)
k element in the priority queuek - long top()
long popTop()
void updatePriorities()
void updateTopPriority()
top() element, to re-establish its actual priority
towards the comparison criteria when it may have changed such that it is no longer the
min element with respect to the comparison criteria.long getDefaultValue()
void setDefaultValue(long defaultValue)
Copyright © 2017. All rights reserved.