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