public interface IntPriorityQueue extends ObjectPriorityQueue<java.lang.Integer>, IntIterable
| Modifier and Type | Method and Description |
|---|---|
IntComparator |
comparator() |
default java.lang.Integer |
dequeue()
Deprecated.
|
int |
dequeueInt()
Method to extract a element from the PriorityQueue
|
default void |
enqueue(java.lang.Integer e)
Deprecated.
|
void |
enqueueInt(int e)
Method to insert a element into the PriorityQueue
|
default java.lang.Integer |
first()
Deprecated.
|
default int |
firstInt()
Shows the element that is to be returned next
|
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
default java.lang.Integer |
peek(int index)
Deprecated.
|
int |
peekInt(int index)
Peeking function to see whats inside the queue.
|
default boolean |
remove(java.lang.Integer e)
Deprecated.
|
boolean |
removeInt(int e)
Removes the first found element in the queue
|
default boolean |
removeLast(java.lang.Integer e)
Deprecated.
|
boolean |
removeLastInt(int e)
Removes the last found element in the queue
|
default java.lang.Integer[] |
toArray()
Deprecated.
|
java.lang.Integer[] |
toArray(java.lang.Integer[] input)
Deprecated.
|
default int[] |
toIntArray()
A method to drop the contents of the Queue without clearing the queue
|
int[] |
toIntArray(int[] input)
A method to drop the contents of the Queue without clearing the queue
|
clear, isEmpty, sizeforEach, forEach, iterator, spliteratorvoid enqueueInt(int e)
e - the element that should be insertedint dequeueInt()
java.util.NoSuchElementException - if no element is presentint peekInt(int index)
index - of the element that is requested to be viewed.default int firstInt()
boolean removeInt(int e)
e - the element that should be removedboolean removeLastInt(int e)
e - the element that should be removedvoid onChanged()
onChanged in interface ObjectPriorityQueue<java.lang.Integer>IntComparator comparator()
comparator in interface ObjectPriorityQueue<java.lang.Integer>default int[] toIntArray()
int[] toIntArray(int[] input)
input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array@Deprecated default void enqueue(java.lang.Integer e)
ObjectPriorityQueueenqueue in interface ObjectPriorityQueue<java.lang.Integer>e - the element that should be inserted@Deprecated default java.lang.Integer dequeue()
ObjectPriorityQueuedequeue in interface ObjectPriorityQueue<java.lang.Integer>@Deprecated default java.lang.Integer peek(int index)
ObjectPriorityQueuepeek in interface ObjectPriorityQueue<java.lang.Integer>index - of the element that is requested to be viewed.@Deprecated default java.lang.Integer first()
ObjectPriorityQueuefirst in interface ObjectPriorityQueue<java.lang.Integer>@Deprecated default boolean remove(java.lang.Integer e)
ObjectPriorityQueueremove in interface ObjectPriorityQueue<java.lang.Integer>e - the element that should be removed@Deprecated default boolean removeLast(java.lang.Integer e)
ObjectPriorityQueueremoveLast in interface ObjectPriorityQueue<java.lang.Integer>e - the element that should be removed@Deprecated default java.lang.Integer[] toArray()
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Integer>@Deprecated java.lang.Integer[] toArray(java.lang.Integer[] input)
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Integer>input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array