Modul speiger.src.collections
Klasse BooleanPriorityQueues.SynchronizedPriorityDequeue
java.lang.Object
speiger.src.collections.booleans.utils.BooleanPriorityQueues.SynchronizedPriorityQueue
speiger.src.collections.booleans.utils.BooleanPriorityQueues.SynchronizedPriorityDequeue
- Alle implementierten Schnittstellen:
Iterable<Boolean>,BooleanIterable,BooleanPriorityDequeue,BooleanPriorityQueue
- Umschließende Klasse:
BooleanPriorityQueues
public static class BooleanPriorityQueues.SynchronizedPriorityDequeue
extends BooleanPriorityQueues.SynchronizedPriorityQueue
implements BooleanPriorityDequeue
Wrapper class for synchronization
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the PriorityQueue itself.booleanA Method to remove a element from the last place instead of the firstvoidenqueueAllFirst(boolean[] e, int offset, int length) Method to mass insert a elements into the first Index of the PriorityDequeue.voidMethod to mass insert elements into first Index of the PriorityDequeue.voidenqueueFirst(boolean e) Method to insert a element into the first Index instead of the last.Von Klasse geerbte Methoden speiger.src.collections.booleans.utils.BooleanPriorityQueues.SynchronizedPriorityQueue
clear, comparator, contains, count, dequeue, enqueue, enqueueAll, enqueueAll, findFirst, forEach, forEach, iterator, matchesAll, matchesAny, matchesNone, onChanged, peek, removeFirst, removeLast, size, toBooleanArrayVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, iterator, limit, map, matchesAll, matchesAny, matchesNone, peek, pour, pourAsList, reduce, reduce, repeat, sorted, spliteratorVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.queues.BooleanPriorityDequeue
enqueueAllFirst, enqueueAllFirst, last, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.queues.BooleanPriorityQueue
clear, comparator, contains, dequeue, enqueue, enqueueAll, enqueueAll, enqueueAll, enqueueAll, first, isEmpty, onChanged, peek, removeFirst, removeLast, size, toBooleanArray, toBooleanArray
-
Methodendetails
-
enqueueFirst
public void enqueueFirst(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleBooleanPriorityDequeue- Parameter:
e- the element that should be inserted into the first place
-
enqueueAllFirst
public void enqueueAllFirst(boolean[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeueMethod to mass insert a elements into the first Index of the PriorityDequeue.- Angegeben von:
enqueueAllFirstin SchnittstelleBooleanPriorityDequeue- 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:BooleanPriorityDequeueMethod to mass insert elements into first Index of the PriorityDequeue.- Angegeben von:
enqueueAllFirstin SchnittstelleBooleanPriorityDequeue- Parameter:
c- the elements that should be inserted from the Collection
-
dequeueLast
public boolean dequeueLast()Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleBooleanPriorityDequeue- Gibt zurück:
- the last element inserted
-
copy
Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueA 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 SchnittstelleBooleanPriorityDequeue- Angegeben von:
copyin SchnittstelleBooleanPriorityQueue- Setzt außer Kraft:
copyin KlasseBooleanPriorityQueues.SynchronizedPriorityQueue- Gibt zurück:
- a Shallow Copy of the PriorityQueue
-