@Generated(date="2017-07-11T19:16:23+0200",
value="KTypePriorityQueue.java")
public interface IntPriorityQueue
extends IntCollection
ints.| Modifier and Type | Method and Description |
|---|---|
void |
add(int k)
Add a
k element in the priority queue |
int |
getDefaultValue()
Returns the "default value" value used
in methods returning "default value"
|
int |
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(int defaultValue)
Set the "default value" value to be used
in methods returning "default value"
|
int |
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(int k)
k element in the priority queuek - int top()
int 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.int getDefaultValue()
void setDefaultValue(int defaultValue)
Copyright © 2017. All rights reserved.