T - the type of elements maintained by this Collectionpublic interface ObjectPriorityDequeue<T> extends ObjectPriorityQueue<T>
| Modifier and Type | Method and Description |
|---|---|
ObjectPriorityDequeue<T> |
copy()
A Function that does a shallow clone of the PriorityQueue itself.
|
T |
dequeueLast()
A Method to remove a element from the last place instead of the first
|
default void |
enqueueAllFirst(java.util.Collection<? extends T> c)
Method to mass insert elements into first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(ObjectCollection<T> c)
Method to mass insert elements into first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(T... e)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(T[] e,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
default void |
enqueueAllFirst(T[] e,
int offset,
int length)
Method to mass insert a elements into the first Index of the PriorityDequeue.
|
void |
enqueueFirst(T e)
Method to insert a element into the first Index instead of the last.
|
default T |
last()
Peeking function for the last element
|
default ObjectPriorityDequeue<T> |
synchronizeQueue()
Creates a Wrapped PriorityDequeue that is Synchronized
|
default ObjectPriorityDequeue<T> |
synchronizeQueue(java.lang.Object mutex)
Creates a Wrapped PriorityDequeue that is Synchronized
|
clear, comparator, dequeue, enqueue, enqueueAll, enqueueAll, enqueueAll, enqueueAll, enqueueAll, first, isEmpty, iterator, onChanged, peek, removeFirst, removeLast, size, toArray, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pour, pourAsList, pourAsSet, reduce, reduce, sorted, spliteratorvoid enqueueFirst(T e)
e - the element that should be inserted into the first placedefault void enqueueAllFirst(T... e)
e - the elements that should be inserteddefault void enqueueAllFirst(T[] e, int length)
e - the elements that should be insertedlength - the amount of elements that should be inserteddefault void enqueueAllFirst(T[] 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(ObjectCollection<T> c)
c - the elements that should be inserted from the Collectiondefault void enqueueAllFirst(java.util.Collection<? extends T> c)
c - the elements that should be inserted from the CollectionT dequeueLast()
java.util.NoSuchElementException - if no element is in the dequedefault T last()
default ObjectPriorityDequeue<T> synchronizeQueue()
synchronizeQueue in interface ObjectPriorityQueue<T>ObjectPriorityQueues.synchronize(speiger.src.collections.objects.queues.ObjectPriorityQueue<T>)default ObjectPriorityDequeue<T> synchronizeQueue(java.lang.Object mutex)
synchronizeQueue in interface ObjectPriorityQueue<T>mutex - is the controller of the synchronization blockObjectPriorityQueues.synchronize(speiger.src.collections.objects.queues.ObjectPriorityQueue<T>)ObjectPriorityDequeue<T> copy()
ObjectPriorityQueuecopy in interface ObjectPriorityQueue<T>