public interface DoublePriorityDequeue extends DoublePriorityQueue
| Modifier and Type | Method and Description |
|---|---|
DoublePriorityDequeue |
copy()
A Function that does a shallow clone of the PriorityQueue itself.
|
double |
dequeueLast()
A Method to remove a element from the last place instead of the first
|
default void |
enqueueAllFirst(double... e)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(double[] e,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(double[] e,
int offset,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(DoubleCollection c)
Method to mass insert elements into first Index of the PriorityDequeue.
|
void |
enqueueFirst(double e)
Method to insert a element into the first Index instead of the last.
|
default double |
last()
Peeking function for the last element
|
default DoublePriorityDequeue |
synchronizeQueue()
Creates a Wrapped PriorityDequeue that is Synchronized
|
default DoublePriorityDequeue |
synchronizeQueue(java.lang.Object mutex)
Creates a Wrapped PriorityDequeue that is Synchronized
|
clear, comparator, dequeue, enqueue, enqueueAll, enqueueAll, enqueueAll, enqueueAll, first, isEmpty, onChanged, peek, removeFirst, removeLast, size, toDoubleArray, toDoubleArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, iterator, limit, map, matchesAll, matchesAny, matchesNone, peek, pour, pourAsList, pourAsSet, reduce, reduce, repeat, sorted, spliteratorvoid enqueueFirst(double e)
e - the element that should be inserted into the first placedefault void enqueueAllFirst(double... e)
e - the elements that should be inserteddefault void enqueueAllFirst(double[] e,
int length)
e - the elements that should be insertedlength - the amount of elements that should be inserteddefault void enqueueAllFirst(double[] e,
int offset,
int length)
e - the elements that should be insertedoffset - the offset where in the array should be startedlength - the amount of elements that should be inserteddefault void enqueueAllFirst(DoubleCollection c)
c - the elements that should be inserted from the Collectiondouble dequeueLast()
java.util.NoSuchElementException - if no element is in the dequedefault double last()
default DoublePriorityDequeue synchronizeQueue()
synchronizeQueue in interface DoublePriorityQueueDoublePriorityQueues.synchronize(speiger.src.collections.doubles.queues.DoublePriorityQueue)default DoublePriorityDequeue synchronizeQueue(java.lang.Object mutex)
synchronizeQueue in interface DoublePriorityQueuemutex - is the controller of the synchronization blockDoublePriorityQueues.synchronize(speiger.src.collections.doubles.queues.DoublePriorityQueue)DoublePriorityDequeue copy()
DoublePriorityQueuecopy in interface DoublePriorityQueue