public interface ShortPriorityDequeue extends ShortPriorityQueue
| Modifier and Type | Method and Description |
|---|---|
ShortPriorityDequeue |
copy()
A Function that does a shallow clone of the PriorityQueue itself.
|
short |
dequeueLast()
A Method to remove a element from the last place instead of the first
|
default void |
enqueueAllFirst(short... e)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(short[] e,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(short[] e,
int offset,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(ShortCollection c)
Method to mass insert elements into first Index of the PriorityDequeue.
|
void |
enqueueFirst(short e)
Method to insert a element into the first Index instead of the last.
|
default short |
last()
Peeking function for the last element
|
default ShortPriorityDequeue |
synchronizeQueue()
Creates a Wrapped PriorityDequeue that is Synchronized
|
default ShortPriorityDequeue |
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, toShortArray, toShortArrayarrayflatMap, 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(short e)
e - the element that should be inserted into the first placedefault void enqueueAllFirst(short... e)
e - the elements that should be inserteddefault void enqueueAllFirst(short[] e,
int length)
e - the elements that should be insertedlength - the amount of elements that should be inserteddefault void enqueueAllFirst(short[] 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(ShortCollection c)
c - the elements that should be inserted from the Collectionshort dequeueLast()
java.util.NoSuchElementException - if no element is in the dequedefault short last()
default ShortPriorityDequeue synchronizeQueue()
synchronizeQueue in interface ShortPriorityQueueShortPriorityQueues.synchronize(speiger.src.collections.shorts.queues.ShortPriorityQueue)default ShortPriorityDequeue synchronizeQueue(java.lang.Object mutex)
synchronizeQueue in interface ShortPriorityQueuemutex - is the controller of the synchronization blockShortPriorityQueues.synchronize(speiger.src.collections.shorts.queues.ShortPriorityQueue)ShortPriorityDequeue copy()
ShortPriorityQueuecopy in interface ShortPriorityQueue