public interface DoublePriorityQueue extends ObjectPriorityQueue<java.lang.Double>, DoubleIterable
| Modifier and Type | Method and Description |
|---|---|
DoubleComparator |
comparator() |
default java.lang.Double |
dequeue()
Deprecated.
|
double |
dequeueDouble()
Method to extract a element from the PriorityQueue
|
default void |
enqueue(java.lang.Double e)
Deprecated.
|
void |
enqueueDouble(double e)
Method to insert a element into the PriorityQueue
|
default java.lang.Double |
first()
Deprecated.
|
default double |
firstDouble()
Shows the element that is to be returned next
|
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
default java.lang.Double |
peek(int index)
Deprecated.
|
double |
peekDouble(int index)
Peeking function to see whats inside the queue.
|
default boolean |
remove(java.lang.Double e)
Deprecated.
|
boolean |
removeDouble(double e)
Removes the first found element in the queue
|
default boolean |
removeLast(java.lang.Double e)
Deprecated.
|
boolean |
removeLastDouble(double e)
Removes the last found element in the queue
|
default java.lang.Double[] |
toArray()
Deprecated.
|
java.lang.Double[] |
toArray(java.lang.Double[] input)
Deprecated.
|
default double[] |
toDoubleArray()
A method to drop the contents of the Queue without clearing the queue
|
double[] |
toDoubleArray(double[] input)
A method to drop the contents of the Queue without clearing the queue
|
clear, isEmpty, sizeforEach, forEach, iterator, spliteratorvoid enqueueDouble(double e)
e - the element that should be inserteddouble dequeueDouble()
java.util.NoSuchElementException - if no element is presentdouble peekDouble(int index)
index - of the element that is requested to be viewed.default double firstDouble()
boolean removeDouble(double e)
e - the element that should be removedboolean removeLastDouble(double e)
e - the element that should be removedvoid onChanged()
onChanged in interface ObjectPriorityQueue<java.lang.Double>DoubleComparator comparator()
comparator in interface ObjectPriorityQueue<java.lang.Double>default double[] toDoubleArray()
double[] toDoubleArray(double[] 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.Double e)
ObjectPriorityQueueenqueue in interface ObjectPriorityQueue<java.lang.Double>e - the element that should be inserted@Deprecated default java.lang.Double dequeue()
ObjectPriorityQueuedequeue in interface ObjectPriorityQueue<java.lang.Double>@Deprecated default java.lang.Double peek(int index)
ObjectPriorityQueuepeek in interface ObjectPriorityQueue<java.lang.Double>index - of the element that is requested to be viewed.@Deprecated default java.lang.Double first()
ObjectPriorityQueuefirst in interface ObjectPriorityQueue<java.lang.Double>@Deprecated default boolean remove(java.lang.Double e)
ObjectPriorityQueueremove in interface ObjectPriorityQueue<java.lang.Double>e - the element that should be removed@Deprecated default boolean removeLast(java.lang.Double e)
ObjectPriorityQueueremoveLast in interface ObjectPriorityQueue<java.lang.Double>e - the element that should be removed@Deprecated default java.lang.Double[] toArray()
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Double>@Deprecated java.lang.Double[] toArray(java.lang.Double[] input)
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Double>input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array