java.lang.Object
java.util.AbstractCollection<Float>
speiger.src.collections.floats.collections.AbstractFloatCollection
speiger.src.collections.floats.lists.AbstractFloatList
speiger.src.collections.floats.lists.FloatLinkedList
- Alle implementierten Schnittstellen:
Iterable<Float>,Collection<Float>,List<Float>,FloatCollection,FloatIterable,FloatStack,FloatList,FloatPriorityDequeue,FloatPriorityQueue,ISizeProvider
A Type-Specific LinkedList implementation of list that is written to reduce (un)boxing
This implementation is optimized to improve how data is processed with interfaces like FloatStack
and with optimized functions that use type-specific implementations for primitives and optimized logic for bulk actions.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new LinkedList.FloatLinkedList(float... a) Creates a new LinkedList with a Copy of the arrayFloatLinkedList(float[] a, int length) Creates a new LinkedList with a Copy of the array with a custom lengthFloatLinkedList(float[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.FloatLinkedList(Collection<? extends Float> c) Veraltet.Creates a new LinkedList a copy with the contents of the Collection.Creates a new LinkedList a copy with the contents of the List. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(float e) A Type-Specific implementation of add function that delegates toList.add(int, Object)voidadd(int index, float e) A Type-Specific add Function to reduce (un)boxingbooleanaddAll(float[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(int index, Collection<? extends Float> c) Veraltet.booleanaddAll(int index, FloatCollection c) A Type-Specific addAll Function to reduce (un)boxingbooleanA Type-Specific and optimized addAll function that allows a faster transfer of elementsvoidaddElements(int from, float[] a, int offset, int length) A function to fast add elements to the listvoidclear()clears all elements within the PriorityQueue, this does not resize the backing arraysbooleancontains(float e) A Type-Specific implementation of contains.booleanVeraltet.copy()A Function that does a shallow clone of the Collection itself.intcount(FloatPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.floatdequeue()Method to extract a element from the PriorityQueuefloatA Method to remove a element from the last place instead of the firstvoidenqueue(float e) Method to insert a element into the PriorityQueuevoidenqueueFirst(float e) Method to insert a element into the first Index instead of the last.float[]extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.voidfillBuffer(FloatBuffer buffer) Helper function that allows to fastFill a buffer reducing the duplication requirementfloatfindFirst(FloatPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.floatfirst()Shows the element that is to be returned next<E> voidforEach(E input, ObjectFloatConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidforEach(FloatConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntFloatConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.float[]getElements(int from, float[] a, int offset, int length) A function to fast fetch elements from the listfloatHelper method that returns the first element of a List.floatgetFloat(int index) A Type-Specific get function to reduce (un)boxingfloatHelper method that returns the last element of a List.intindexOf(float e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.floatlast()Peeking function for the last elementintlastIndexOf(float e) The lastIndexOf implementation iterates over all elements and compares them to the search value.intVeraltet.listIterator(int index) A Type-Specific Iterator of listIteratorbooleanmatchesAll(FloatPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(FloatPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(FloatPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.voidAllows to notify the Queue to be revalidate its dataReturns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.floatpeek(int index) Peeking function to see whats inside the queue.floatpop()Removes the Object on top of the stack.Returns a Java-Type-Specific Stream to reduce boxing/unboxing.voidpush(float e) Inserts a given Object on top of the stackfloatreduce(float identity, FloatFloatUnaryOperator operator) Performs a reduction on the elements of this Iterablefloatreduce(FloatFloatUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremFloat(float e) A Type-Specific implementation of remove.booleanremIf(DoublePredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.voidremoveElements(int from, int to) a function to fast remove elements from the list.booleanremoveFirst(float e) Removes the first found element in the queuefloatHelper method that removes and returns the first element of a List.floatremoveFloat(int index) A Type-Specific remove function to reduce (un)boxingbooleanVeraltet.booleanremoveLast(float e) Removes the last found element in the queuefloatHelper method that removes and returns the last element of a List.voidVeraltet.voidA Type-Specific replace function to reduce (un)boxingbooleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of retainAll.booleanA Type-Specific retainAll function that reduces (un)boxing.floatset(int index, float e) A Type-Specific set function to reduce (un)boxingintsize()Provides the amount of elements currently in the stackA Type Specific Type Splititerator to reduce boxing/unboxingfloatswapRemove(int index) A Highly Optimized remove function that removes the desired element.booleanswapRemoveFloat(float e) A Highly Optimized remove function that removes the desired element.Object[]toArray()<E> E[]toArray(E[] a) float[]toFloatArray(float[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.floats.lists.AbstractFloatList
add, addAll, addAll, addAll, equals, hashCode, indexedIterator, indexedIterator, iterator, listIterator, reversed, size, subListVon Klasse geerbte Methoden speiger.src.collections.floats.collections.AbstractFloatCollection
add, containsAll, containsAll, containsAny, containsAny, remove, toFloatArrayVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatCollection
addAll, addAll, containsAll, containsAny, containsAny, pour, toFloatArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatIterable
arrayflatMap, asAsync, distinct, filter, flatMap, forEach, iterator, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.floats.lists.FloatList
add, addElements, addElements, addIfAbsent, addIfPresent, get, getElements, remove, remove, set, sort, sort, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.floats.queues.FloatPriorityDequeue
enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.floats.queues.FloatPriorityQueue
enqueueAll, enqueueAll, enqueueAll, enqueueAll, isEmpty, toFloatArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatStack
isEmpty, pushTop, toFloatArray, topVon Schnittstelle geerbte Methoden java.util.List
containsAll, isEmpty
-
Konstruktordetails
-
FloatLinkedList
public FloatLinkedList()Creates a new LinkedList. -
FloatLinkedList
Veraltet.Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
FloatLinkedList
Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
FloatLinkedList
Creates a new LinkedList a copy with the contents of the List.- Parameter:
l- the elements that should be added into the list
-
FloatLinkedList
public FloatLinkedList(float... a) Creates a new LinkedList with a Copy of the array- Parameter:
a- the array that should be copied
-
FloatLinkedList
public FloatLinkedList(float[] a, int length) Creates a new LinkedList with a Copy of the array with a custom length- Parameter:
a- the array that should be copiedlength- the desired length that should be copied
-
FloatLinkedList
public FloatLinkedList(float[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.- Parameter:
a- the array that should be copiedoffset- the starting offset of where the array should be copied fromlength- the desired length that should be copied- Löst aus:
IllegalStateException- if offset is smaller then 0IllegalStateException- if the offset + length exceeds the array length
-
-
Methodendetails
-
add
public boolean add(float e) Beschreibung aus Klasse kopiert:AbstractFloatListA Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleFloatCollection- Angegeben von:
addin SchnittstelleFloatList- Setzt außer Kraft:
addin KlasseAbstractFloatList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
public void add(int index, float e) Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific add Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific addAll Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific and optimized addAll function that allows a faster transfer of elements -
addAll
Veraltet. -
enqueue
public void enqueue(float e) Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueMethod to insert a element into the PriorityQueue- Angegeben von:
enqueuein SchnittstelleFloatPriorityQueue- Parameter:
e- the element that should be inserted
-
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
-
push
public void push(float e) Beschreibung aus Schnittstelle kopiert:FloatStackInserts a given Object on top of the stack- Angegeben von:
pushin SchnittstelleFloatStack- Parameter:
e- the Object to insert- Siehe auch:
-
addAll
public boolean addAll(float[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:FloatCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleFloatCollection- Parameter:
e- the elements that should be addedoffset- where to start within the arraylength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
addElements
public void addElements(int from, float[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:FloatListA function to fast add elements to the list- Angegeben von:
addElementsin SchnittstelleFloatList- Parameter:
from- the index where the elements should be added into the lista- the elements that should be addedoffset- the start index of the array should be read fromlength- how many elements should be read from
-
getElements
public float[] getElements(int from, float[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:FloatListA function to fast fetch elements from the list- Angegeben von:
getElementsin SchnittstelleFloatList- Parameter:
from- index where the list should be fetching elements froma- the array where the values should be inserted tooffset- the startIndex of where the array should be written tolength- the number of elements the values should be fetched from- Gibt zurück:
- the inputArray
-
first
public float first()Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueShows the element that is to be returned next- Angegeben von:
firstin SchnittstelleFloatPriorityQueue- Gibt zurück:
- the first element in the Queue
-
last
public float last()Beschreibung aus Schnittstelle kopiert:FloatPriorityDequeuePeeking function for the last element- Angegeben von:
lastin SchnittstelleFloatPriorityDequeue- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
getFirstFloat
public float getFirstFloat()Beschreibung aus Schnittstelle kopiert:FloatListHelper method that returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
getFirstFloatin SchnittstelleFloatList- Gibt zurück:
- first element of the list
-
getLastFloat
public float getLastFloat()Beschreibung aus Schnittstelle kopiert:FloatListHelper method that returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
getLastFloatin SchnittstelleFloatList- Gibt zurück:
- last element of the list
-
removeFirstFloat
public float removeFirstFloat()Beschreibung aus Schnittstelle kopiert:FloatListHelper method that removes and returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
removeFirstFloatin SchnittstelleFloatList- Gibt zurück:
- first element of the list and removes it
-
removeLastFloat
public float removeLastFloat()Beschreibung aus Schnittstelle kopiert:FloatListHelper method that removes and returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
removeLastFloatin SchnittstelleFloatList- Gibt zurück:
- last element of the list and removes it
-
peek
public float peek(int index) Beschreibung aus Schnittstelle kopiert:FloatPriorityQueuePeeking function to see whats inside the queue.- Angegeben von:
peekin SchnittstelleFloatPriorityQueue- Angegeben von:
peekin SchnittstelleFloatStack- Parameter:
index- of the element that is requested to be viewed.- Gibt zurück:
- the element that is requested
- Siehe auch:
-
getFloat
public float getFloat(int index) Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific get function to reduce (un)boxing -
contains
Veraltet.Beschreibung aus Klasse kopiert:AbstractFloatCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleCollection<Float>- Angegeben von:
containsin SchnittstelleFloatCollection- Angegeben von:
containsin SchnittstelleFloatList- Angegeben von:
containsin SchnittstelleList<Float>- Setzt außer Kraft:
containsin KlasseAbstractFloatCollection
-
indexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractFloatListThe IndexOf implementation iterates over all elements and compares them to the search value. -
lastIndexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractFloatListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleFloatList- Angegeben von:
lastIndexOfin SchnittstelleList<Float>- Setzt außer Kraft:
lastIndexOfin KlasseAbstractFloatList- Parameter:
o- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
contains
public boolean contains(float e) Beschreibung aus Klasse kopiert:AbstractFloatCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleFloatCollection- Angegeben von:
containsin SchnittstelleFloatPriorityQueue- Setzt außer Kraft:
containsin KlasseAbstractFloatCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
indexOf
public int indexOf(float e) Beschreibung aus Klasse kopiert:AbstractFloatListThe indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleFloatList- Setzt außer Kraft:
indexOfin KlasseAbstractFloatList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- index of the value that was searched for. -1 if not found
-
lastIndexOf
public int lastIndexOf(float e) Beschreibung aus Klasse kopiert:AbstractFloatListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleFloatList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractFloatList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
listIterator
Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleFloatList- Angegeben von:
listIteratorin SchnittstelleList<Float>- Setzt außer Kraft:
listIteratorin KlasseAbstractFloatList- Siehe auch:
-
primitiveStream
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.- Angegeben von:
primitiveStreamin SchnittstelleFloatCollection- Gibt zurück:
- a Stream of the closest java type
-
parallelPrimitiveStream
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.- Angegeben von:
parallelPrimitiveStreamin SchnittstelleFloatCollection- Gibt zurück:
- a Stream of the closest java type
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleCollection<Float>- Angegeben von:
spliteratorin SchnittstelleFloatCollection- Angegeben von:
spliteratorin SchnittstelleFloatIterable- Angegeben von:
spliteratorin SchnittstelleFloatList- Angegeben von:
spliteratorin SchnittstelleIterable<Float>- Angegeben von:
spliteratorin SchnittstelleList<Float>- Gibt zurück:
- type specific splititerator
-
forEach
Beschreibung aus Schnittstelle kopiert:FloatIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleFloatIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:FloatIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleFloatIterable- Angegeben von:
forEachIndexedin SchnittstelleFloatList- Parameter:
action- The action to be performed for each element
-
forEach
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleFloatIterable- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element
-
matchesAny
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleFloatIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleFloatIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleFloatIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleFloatIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Beschreibung aus Schnittstelle kopiert:FloatIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleFloatIterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Beschreibung aus Schnittstelle kopiert:FloatIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleFloatIterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
count
Beschreibung aus Schnittstelle kopiert:FloatIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleFloatIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-
set
public float set(int index, float e) Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific set function to reduce (un)boxing -
replaceAll
Veraltet.Beschreibung aus Schnittstelle kopiert:FloatListThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
replaceAllin SchnittstelleFloatList- Angegeben von:
replaceAllin SchnittstelleList<Float>
-
replaceFloats
Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific replace function to reduce (un)boxing- Angegeben von:
replaceFloatsin SchnittstelleFloatList- Parameter:
o- the action to replace the values
-
onChanged
public void onChanged()Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueAllows to notify the Queue to be revalidate its data- Angegeben von:
onChangedin SchnittstelleFloatPriorityQueue
-
comparator
- Angegeben von:
comparatorin SchnittstelleFloatPriorityQueue- Gibt zurück:
- the sorter of the Queue, can be null
-
dequeue
public float dequeue()Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueMethod to extract a element from the PriorityQueue- Angegeben von:
dequeuein SchnittstelleFloatPriorityQueue- Gibt zurück:
- a element from the Queue
-
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
-
pop
public float pop()Beschreibung aus Schnittstelle kopiert:FloatStackRemoves the Object on top of the stack.- Angegeben von:
popin SchnittstelleFloatStack- Gibt zurück:
- the element that is on top of the stack
- Siehe auch:
-
removeFirst
public boolean removeFirst(float e) Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueRemoves the first found element in the queue- Angegeben von:
removeFirstin SchnittstelleFloatPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
removeLast
public boolean removeLast(float e) Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueRemoves the last found element in the queue- Angegeben von:
removeLastin SchnittstelleFloatPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
swapRemove
public float swapRemove(int index) Beschreibung aus Schnittstelle kopiert:FloatListA Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Angegeben von:
swapRemovein SchnittstelleFloatList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveFloat
public boolean swapRemoveFloat(float e) Beschreibung aus Schnittstelle kopiert:FloatListA Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Angegeben von:
swapRemoveFloatin SchnittstelleFloatList- Setzt außer Kraft:
swapRemoveFloatin KlasseAbstractFloatList- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
remFloat
public boolean remFloat(float e) Beschreibung aus Klasse kopiert:AbstractFloatCollectionA Type-Specific implementation of remove. This implementation iterates over the elements until it finds the element that is searched for or it runs out of elements. It stops after finding the first element- Angegeben von:
remFloatin SchnittstelleFloatCollection- Setzt außer Kraft:
remFloatin KlasseAbstractFloatCollection- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeFloat
public float removeFloat(int index) Beschreibung aus Schnittstelle kopiert:FloatListA Type-Specific remove function to reduce (un)boxing- Angegeben von:
removeFloatin SchnittstelleFloatList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
- Siehe auch:
-
removeElements
public void removeElements(int from, int to) Beschreibung aus Schnittstelle kopiert:FloatLista function to fast remove elements from the list.- Angegeben von:
removeElementsin SchnittstelleFloatList- Parameter:
from- the start index of where the elements should be removed from (inclusive)to- the end index of where the elements should be removed to (exclusive)
-
extractElements
public float[] extractElements(int from, int to) Beschreibung aus Schnittstelle kopiert:FloatListA function to fast extract elements out of the list, this removes the elements that were fetched.- Angegeben von:
extractElementsin SchnittstelleFloatList- Parameter:
from- the start index of where the elements should be fetched from (inclusive)to- the end index of where the elements should be fetched to (exclusive)- Gibt zurück:
- a array of the elements that were fetched
-
fillBuffer
Beschreibung aus Schnittstelle kopiert:FloatListHelper function that allows to fastFill a buffer reducing the duplication requirement- Angegeben von:
fillBufferin SchnittstelleFloatList- Parameter:
buffer- where the data should be stored in.
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Float>- Angegeben von:
removeAllin SchnittstelleList<Float>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Float>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Float>- Angegeben von:
retainAllin SchnittstelleList<Float>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Float>
-
removeAll
Beschreibung aus Klasse kopiert:AbstractFloatCollectionA Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.- Angegeben von:
removeAllin SchnittstelleFloatCollection- Setzt außer Kraft:
removeAllin KlasseAbstractFloatCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:FloatCollectionA Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
removeAllin SchnittstelleFloatCollection- Setzt außer Kraft:
removeAllin KlasseAbstractFloatCollection- Parameter:
c- the collection of elements that should be removedr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Klasse kopiert:AbstractFloatCollectionA Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.- Angegeben von:
retainAllin SchnittstelleFloatCollection- Setzt außer Kraft:
retainAllin KlasseAbstractFloatCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:FloatCollectionA Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
retainAllin SchnittstelleFloatCollection- Setzt außer Kraft:
retainAllin KlasseAbstractFloatCollection- Parameter:
c- the collection of elements that should be keptr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeIf
Veraltet.Beschreibung aus Schnittstelle kopiert:FloatCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removeIfin SchnittstelleCollection<Float>- Angegeben von:
removeIfin SchnittstelleFloatCollection
-
remIf
Beschreibung aus Schnittstelle kopiert:FloatCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleFloatCollection- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Siehe auch:
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Float>- Angegeben von:
toArrayin SchnittstelleList<Float>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Float>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Float>- Angegeben von:
toArrayin SchnittstelleList<Float>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Float>
-
toFloatArray
public float[] toFloatArray(float[] a) Beschreibung aus Klasse kopiert:AbstractFloatCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toFloatArrayin SchnittstelleFloatCollection- Angegeben von:
toFloatArrayin SchnittstelleFloatPriorityQueue- Angegeben von:
toFloatArrayin SchnittstelleFloatStack- Setzt außer Kraft:
toFloatArrayin KlasseAbstractFloatCollection- Parameter:
a- array that the elements should be injected to. If null or to small a new array with the right size is created- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
size
public int size()Beschreibung aus Schnittstelle kopiert:FloatStackProvides the amount of elements currently in the stack- Angegeben von:
sizein SchnittstelleCollection<Float>- Angegeben von:
sizein SchnittstelleFloatPriorityQueue- Angegeben von:
sizein SchnittstelleFloatStack- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein SchnittstelleList<Float>- Angegeben von:
sizein KlasseAbstractCollection<Float>- Gibt zurück:
- the amount of elements that are stored in the PriorityQueue
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:FloatPriorityQueueclears all elements within the PriorityQueue, this does not resize the backing arrays- Angegeben von:
clearin SchnittstelleCollection<Float>- Angegeben von:
clearin SchnittstelleFloatPriorityQueue- Angegeben von:
clearin SchnittstelleFloatStack- Angegeben von:
clearin SchnittstelleList<Float>- Setzt außer Kraft:
clearin KlasseAbstractCollection<Float>
-
copy
Beschreibung aus Schnittstelle kopiert:FloatCollectionA Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleFloatCollection- Angegeben von:
copyin SchnittstelleFloatList- Angegeben von:
copyin SchnittstelleFloatPriorityDequeue- Angegeben von:
copyin SchnittstelleFloatPriorityQueue- Setzt außer Kraft:
copyin KlasseAbstractFloatList- Gibt zurück:
- a Shallow Copy of the collection
-