Modul speiger.src.collections
Klasse ObjectPriorityQueues.SynchronizedPriorityDequeue<T>
java.lang.Object
speiger.src.collections.objects.utils.ObjectPriorityQueues.SynchronizedPriorityQueue<T>
speiger.src.collections.objects.utils.ObjectPriorityQueues.SynchronizedPriorityDequeue<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
Iterable<T>,ObjectIterable<T>,ObjectPriorityDequeue<T>,ObjectPriorityQueue<T>
- Umschließende Klasse:
ObjectPriorityQueues
public static class ObjectPriorityQueues.SynchronizedPriorityDequeue<T>
extends ObjectPriorityQueues.SynchronizedPriorityQueue<T>
implements ObjectPriorityDequeue<T>
Wrapper class for synchronization
-
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 firstvoidenqueueAllFirst(Collection<? extends T> c) Method to mass insert elements into first Index of the PriorityDequeue.voidMethod to mass insert elements into first Index of the PriorityDequeue.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.Von Klasse geerbte Methoden speiger.src.collections.objects.utils.ObjectPriorityQueues.SynchronizedPriorityQueue
clear, comparator, contains, count, dequeue, enqueue, enqueueAll, enqueueAll, enqueueAll, findFirst, forEach, forEach, iterator, matchesAll, matchesAny, matchesNone, onChanged, peek, removeFirst, removeLast, size, toArrayVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon 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.ObjectPriorityDequeue
enqueueAllFirst, enqueueAllFirst, last, synchronizeQueue, synchronizeQueueVon 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
Beschreibung aus Schnittstelle kopiert:ObjectPriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleObjectPriorityDequeue<T>- Parameter:
e- the element that should be inserted into the first place
-
enqueueAllFirst
Beschreibung aus Schnittstelle kopiert:ObjectPriorityDequeueMethod to mass insert a elements into the first Index of the PriorityDequeue.- Angegeben von:
enqueueAllFirstin SchnittstelleObjectPriorityDequeue<T>- 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
Beschreibung aus Schnittstelle kopiert:ObjectPriorityDequeueMethod to mass insert elements into first Index of the PriorityDequeue.- Angegeben von:
enqueueAllFirstin SchnittstelleObjectPriorityDequeue<T>- Parameter:
c- the elements that should be inserted from the Collection
-
enqueueAllFirst
Beschreibung aus Schnittstelle kopiert:ObjectPriorityDequeueMethod to mass insert elements into first Index of the PriorityDequeue. This method exists to add support for Java Collections to make it more useable- Angegeben von:
enqueueAllFirstin SchnittstelleObjectPriorityDequeue<T>- Parameter:
c- the elements that should be inserted from the Collection
-
dequeueLast
Beschreibung aus Schnittstelle kopiert:ObjectPriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleObjectPriorityDequeue<T>- Gibt zurück:
- the last element inserted
-
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 SchnittstelleObjectPriorityDequeue<T>- Angegeben von:
copyin SchnittstelleObjectPriorityQueue<T>- Setzt außer Kraft:
copyin KlasseObjectPriorityQueues.SynchronizedPriorityQueue<T>- Gibt zurück:
- a Shallow Copy of the PriorityQueue
-