Modul speiger.src.collections
Klasse AbstractDoubleCollection
java.lang.Object
java.util.AbstractCollection<Double>
speiger.src.collections.doubles.collections.AbstractDoubleCollection
- Alle implementierten Schnittstellen:
Iterable<Double>,Collection<Double>,DoubleCollection,DoubleIterable,ISizeProvider
- Bekannte direkte Unterklassen:
AbstractDoubleList,AbstractDoubleSet,DoubleCollections.EmptyCollection
public abstract class AbstractDoubleCollection
extends AbstractCollection<Double>
implements DoubleCollection
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 Double> c) Veraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific addAll function to reduce (un)boxingbooleancontains(double 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 DoubleIteratoriterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanremDouble(double 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.double[]A Type-Specific implementation of toArray that links totoDoubleArray(double[])with a newly created array.double[]toDoubleArray(double[] 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.doubles.collections.DoubleCollection
add, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleIterable
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
-
AbstractDoubleCollection
public AbstractDoubleCollection()
-
-
Methodendetails
-
iterator
Beschreibung aus Schnittstelle kopiert:DoubleCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Double>- Angegeben von:
iteratorin SchnittstelleDoubleCollection- Angegeben von:
iteratorin SchnittstelleDoubleIterable- Angegeben von:
iteratorin SchnittstelleIterable<Double>- Angegeben von:
iteratorin KlasseAbstractCollection<Double>- 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<Double>- Angegeben von:
addin SchnittstelleDoubleCollection- Setzt außer Kraft:
addin KlasseAbstractCollection<Double>
-
addAll
Beschreibung aus Schnittstelle kopiert:DoubleCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleDoubleCollection- 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:DoubleCollectionA 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 SchnittstelleDoubleCollection- 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<Double>- Angegeben von:
containsin SchnittstelleDoubleCollection- Setzt außer Kraft:
containsin KlasseAbstractCollection<Double>
-
contains
public boolean contains(double e) A Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleDoubleCollection- 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<Double>- Setzt außer Kraft:
addAllin KlasseAbstractCollection<Double>
-
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 SchnittstelleDoubleCollection- 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<Double>- Setzt außer Kraft:
containsAllin KlasseAbstractCollection<Double>
-
containsAny
Veraltet.This implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleDoubleCollection- 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 SchnittstelleDoubleCollection- 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<Double>- Angegeben von:
removein SchnittstelleDoubleCollection- Setzt außer Kraft:
removein KlasseAbstractCollection<Double>
-
remDouble
public boolean remDouble(double 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:
remDoublein SchnittstelleDoubleCollection- 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 SchnittstelleDoubleCollection- 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:DoubleCollectionA 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 SchnittstelleDoubleCollection- 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 SchnittstelleDoubleCollection- 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:DoubleCollectionA 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 SchnittstelleDoubleCollection- 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:
-
toDoubleArray
public double[] toDoubleArray()A Type-Specific implementation of toArray that links totoDoubleArray(double[])with a newly created array.- Angegeben von:
toDoubleArrayin SchnittstelleDoubleCollection- Angegeben von:
toDoubleArrayin SchnittstelleDoubleIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toDoubleArray
public double[] toDoubleArray(double[] a) A Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toDoubleArrayin SchnittstelleDoubleCollection- 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:
-