Modul speiger.src.collections
Schnittstelle ObjectPriorityDequeue<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle Superschnittstellen:
Iterable<T>,ObjectIterable<T>,ObjectPriorityQueue<T>
- Alle bekannten Implementierungsklassen:
ObjectArrayFIFOQueue,ObjectLinkedList,ObjectPriorityQueues.SynchronizedPriorityDequeue
A Type Speciifc PriorityDeque or Dequeue interface to allow implementations like FIFO queues.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the PriorityQueue itself.A Method to remove a element from the last place instead of the firstdefault voidenqueueAllFirst(Collection<? extends T> c) Method to mass insert elements into first Index of the PriorityDequeue.default voidMethod to mass insert elements into first Index of the PriorityDequeue.default voidenqueueAllFirst(T... e) Method to mass insert a elements into the first Index of the PriorityDequeue.default voidenqueueAllFirst(T[] e, int length) Method to mass insert a elements into the first Index of the PriorityDequeue.default voidenqueueAllFirst(T[] e, int offset, int length) Method to mass insert a elements into the first Index of the PriorityDequeue.voidenqueueFirst(T e) Method to insert a element into the first Index instead of the last.default Tlast()Peeking function for the last elementdefault ObjectPriorityDequeue<T>Creates a Wrapped PriorityDequeue that is Synchronizeddefault ObjectPriorityDequeue<T>synchronizeQueue(Object mutex) Creates a Wrapped PriorityDequeue that is SynchronizedVon Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEachIndexed, limit, map, mapToBoolean, mapToByte, mapToDouble, mapToFloat, mapToInt, mapToLong, mapToShort, matchesAll, matchesAny, matchesNone, peek, pour, pourAsList, pourAsSet, reduce, reduce, repeat, sorted, spliteratorVon Schnittstelle geerbte Methoden speiger.src.collections.objects.queues.ObjectPriorityQueue
clear, comparator, contains, dequeue, enqueue, enqueueAll, enqueueAll, enqueueAll, enqueueAll, enqueueAll, first, isEmpty, iterator, onChanged, peek, removeFirst, removeLast, size, toArray, toArray, toArray
-
Methodendetails
-
enqueueFirst
Method to insert a element into the first Index instead of the last.- Parameter:
e- the element that should be inserted into the first place
-
enqueueAllFirst
Method to mass insert a elements into the first Index of the PriorityDequeue.- Parameter:
e- the elements that should be inserted
-
enqueueAllFirst
Method to mass insert a elements into the first Index of the PriorityDequeue.- Parameter:
e- the elements that should be insertedlength- the amount of elements that should be inserted
-
enqueueAllFirst
Method to mass insert a elements into the first Index of the PriorityDequeue.- Parameter:
e- the elements that should be insertedoffset- the offset where in the array should be startedlength- the amount of elements that should be inserted
-
enqueueAllFirst
Method to mass insert elements into first Index of the PriorityDequeue.- Parameter:
c- the elements that should be inserted from the Collection
-
enqueueAllFirst
Method to mass insert elements into first Index of the PriorityDequeue. This method exists to add support for Java Collections to make it more useable- Parameter:
c- the elements that should be inserted from the Collection
-
dequeueLast
T dequeueLast()A Method to remove a element from the last place instead of the first- Gibt zurück:
- the last element inserted
- Löst aus:
NoSuchElementException- if no element is in the deque
-
last
Peeking function for the last element- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
synchronizeQueue
Creates a Wrapped PriorityDequeue that is Synchronized- Angegeben von:
synchronizeQueuein SchnittstelleObjectPriorityQueue<T>- Gibt zurück:
- a new PriorityDequeue that is synchronized
- Siehe auch:
-
synchronizeQueue
Creates a Wrapped PriorityDequeue that is Synchronized- Angegeben von:
synchronizeQueuein SchnittstelleObjectPriorityQueue<T>- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new PriorityDequeue Wrapper that is synchronized
- Siehe auch:
-
copy
ObjectPriorityDequeue<T> copy()Beschreibung aus Schnittstelle kopiert:ObjectPriorityQueueA Function that does a shallow clone of the PriorityQueue itself. This function is more optimized then a copy constructor since the PriorityQueue does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleObjectPriorityQueue<T>- Gibt zurück:
- a Shallow Copy of the PriorityQueue
-