Modul speiger.src.collections
Klasse AbstractFloatCollection
java.lang.Object
java.util.AbstractCollection<Float>
speiger.src.collections.floats.collections.AbstractFloatCollection
- Alle implementierten Schnittstellen:
Iterable<Float>,Collection<Float>,FloatCollection,FloatIterable,ISizeProvider
- Bekannte direkte Unterklassen:
AbstractFloatList,AbstractFloatSet,FloatCollections.EmptyCollection
public abstract class AbstractFloatCollection
extends AbstractCollection<Float>
implements FloatCollection
Abstract Type Specific Collection that reduces boxing/unboxing
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanVeraltet.Please use the corresponding type-specific function instead.booleanaddAll(Collection<? extends Float> c) Veraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific addAll function to reduce (un)boxingbooleancontains(float e) A Type-Specific implementation of contains.booleanVeraltet.Please use the corresponding type-specific function instead.booleancontainsAll(Collection<?> c) booleanA Type-Specific implementation of containsAll.booleancontainsAny(Collection<?> c) Veraltet.booleanThis implementation iterates over the elements of the collection and checks if they are stored in this collection.copy()A Function that does a shallow clone of the Collection itself.abstract FloatIteratoriterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanremFloat(float e) A Type-Specific implementation of remove.booleanVeraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific implementation of retainAll.booleanA Type-Specific retainAll function that reduces (un)boxing.float[]A Type-Specific implementation of toArray that links totoFloatArray(float[])with a newly created array.float[]toFloatArray(float[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden java.util.AbstractCollection
clear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Collection
clear, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArray, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatCollection
add, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
size
-
Konstruktordetails
-
AbstractFloatCollection
public AbstractFloatCollection()
-
-
Methodendetails
-
iterator
Beschreibung aus Schnittstelle kopiert:FloatCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Float>- Angegeben von:
iteratorin SchnittstelleFloatCollection- Angegeben von:
iteratorin SchnittstelleFloatIterable- Angegeben von:
iteratorin SchnittstelleIterable<Float>- Angegeben von:
iteratorin KlasseAbstractCollection<Float>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
add
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addin SchnittstelleCollection<Float>- Angegeben von:
addin SchnittstelleFloatCollection- Setzt außer Kraft:
addin KlasseAbstractCollection<Float>
-
addAll
Beschreibung aus Schnittstelle kopiert:FloatCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleFloatCollection- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
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- Gibt zurück:
- a Shallow Copy of the collection
-
contains
Veraltet.Please use the corresponding type-specific function instead.This 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- Setzt außer Kraft:
containsin KlasseAbstractCollection<Float>
-
contains
public boolean contains(float e) A Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleFloatCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
addAll
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addAllin SchnittstelleCollection<Float>- Setzt außer Kraft:
addAllin KlasseAbstractCollection<Float>
-
containsAll
A Type-Specific implementation of containsAll. This implementation iterates over all elements and checks all elements are present in the other collection.- Angegeben von:
containsAllin SchnittstelleFloatCollection- Parameter:
c- the collection that should be checked if it contains all elements.- Gibt zurück:
- true if all elements were found in the collection
- Löst aus:
NullPointerException- if the collection is null
-
containsAll
- Angegeben von:
containsAllin SchnittstelleCollection<Float>- Setzt außer Kraft:
containsAllin KlasseAbstractCollection<Float>
-
containsAny
Veraltet.This implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleFloatCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
containsAny
This implementation iterates over the elements of the collection and checks if they are stored in this collection.- Angegeben von:
containsAnyin SchnittstelleFloatCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
remove
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleCollection<Float>- Angegeben von:
removein SchnittstelleFloatCollection- Setzt außer Kraft:
removein KlasseAbstractCollection<Float>
-
remFloat
public boolean remFloat(float e) A 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- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeAll
A 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- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- 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- 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
A 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- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- 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- 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:
-
toFloatArray
public float[] toFloatArray()A Type-Specific implementation of toArray that links totoFloatArray(float[])with a newly created array.- Angegeben von:
toFloatArrayin SchnittstelleFloatCollection- Angegeben von:
toFloatArrayin SchnittstelleFloatIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toFloatArray
public float[] toFloatArray(float[] a) A Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toFloatArrayin SchnittstelleFloatCollection- 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:
-