public static class DoubleCollections.SynchronizedCollection extends java.lang.Object implements DoubleCollection
ISizeProvider.CollectionSize| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Double> c) |
boolean |
addAll(double[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(DoubleCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(double o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(DoubleCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(DoubleCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
DoubleCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(java.util.function.DoublePredicate filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
boolean |
equals(java.lang.Object obj) |
double |
findFirst(java.util.function.DoublePredicate filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
void |
forEach(java.util.function.Consumer<? super java.lang.Double> action)
Deprecated.
|
void |
forEach(DoubleConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
<E> void |
forEach(E input,
ObjectDoubleConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
void |
forEachIndexed(IntDoubleConsumer action)
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
|
int |
hashCode() |
boolean |
isEmpty() |
DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
matchesAll(java.util.function.DoublePredicate filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(java.util.function.DoublePredicate filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(java.util.function.DoublePredicate filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
double |
reduce(double identity,
DoubleDoubleUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
double |
reduce(DoubleDoubleUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
boolean |
remDouble(double o)
A Type-Specific remove function that reduces (un)boxing.
|
boolean |
remIf(java.util.function.DoublePredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(DoubleCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
removeAll(DoubleCollection c,
DoubleConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(DoubleCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(DoubleCollection c,
DoubleConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
double[] |
toDoubleArray()
A Type-Specific toArray function that delegates to
DoubleCollection.toDoubleArray(double[]) with a newly created array. |
double[] |
toDoubleArray(double[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
java.lang.String |
toString() |
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, removeIf, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sortedofpublic boolean add(double o)
DoubleCollectionadd in interface DoubleCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Double> c)
addAll in interface java.util.Collection<java.lang.Double>public boolean addAll(DoubleCollection c)
DoubleCollectionaddAll in interface DoubleCollectionc - the collection of elements that should be addedpublic boolean addAll(double[] e,
int offset,
int length)
DoubleCollectionaddAll in interface DoubleCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(double o)
DoubleCollectioncontains in interface DoubleCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Double>@Deprecated public boolean containsAny(java.util.Collection<?> c)
DoubleCollectioncontainsAny in interface DoubleCollectionc - the collection of elements that should be tested forpublic boolean containsAll(DoubleCollection c)
DoubleCollectioncontainsAll in interface DoubleCollectionc - the collection of elements that should be tested forpublic boolean containsAny(DoubleCollection c)
DoubleCollectioncontainsAny in interface DoubleCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Double>size in interface ISizeProviderpublic boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Double>public DoubleIterator iterator()
DoubleCollectioniterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableCollection.iterator()public DoubleCollection copy()
DoubleCollectioncopy in interface DoubleCollection@Deprecated public boolean remove(java.lang.Object o)
DoubleCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Double>remove in interface DoubleCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Double>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Double>public boolean remDouble(double o)
DoubleCollectionremDouble in interface DoubleCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(DoubleCollection c)
DoubleCollectionremoveAll in interface DoubleCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean removeAll(DoubleCollection c, DoubleConsumer r)
DoubleCollectionremoveAll in interface DoubleCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(DoubleCollection c)
DoubleCollectionretainAll in interface DoubleCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean retainAll(DoubleCollection c, DoubleConsumer r)
DoubleCollectionretainAll in interface DoubleCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public boolean remIf(java.util.function.DoublePredicate filter)
DoubleCollectionRemoves elements that were selected by the filter
remIf in interface DoubleCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Double>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Double>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Double>public double[] toDoubleArray()
DoubleCollectionDoubleCollection.toDoubleArray(double[]) with a newly created array.toDoubleArray in interface DoubleCollectiontoDoubleArray in interface DoubleIterableCollection.toArray()public double[] toDoubleArray(double[] a)
DoubleCollectiontoDoubleArray in interface DoubleCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public void forEach(DoubleConsumer action)
DoubleIterableforEach in interface DoubleIterableaction - The action to be performed for each elementIterable.forEach(Consumer)@Deprecated public void forEach(java.util.function.Consumer<? super java.lang.Double> action)
DoubleIterableThis default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Double>forEach in interface DoubleIterablepublic void forEachIndexed(IntDoubleConsumer action)
DoubleIterableforEachIndexed in interface DoubleIterableaction - The action to be performed for each elementpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Double>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<java.lang.Double>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic <E> void forEach(E input,
ObjectDoubleConsumer<E> action)
DoubleIterableforEach in interface DoubleIterableE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(java.util.function.DoublePredicate filter)
DoubleIterablematchesAny in interface DoubleIterablefilter - that should be appliedpublic boolean matchesNone(java.util.function.DoublePredicate filter)
DoubleIterablematchesNone in interface DoubleIterablefilter - that should be appliedpublic boolean matchesAll(java.util.function.DoublePredicate filter)
DoubleIterablematchesAll in interface DoubleIterablefilter - that should be appliedpublic double reduce(double identity,
DoubleDoubleUnaryOperator operator)
DoubleIterablereduce in interface DoubleIterableidentity - the start valueoperator - the operation that should be appliedpublic double reduce(DoubleDoubleUnaryOperator operator)
DoubleIterablereduce in interface DoubleIterableoperator - the operation that should be appliedpublic double findFirst(java.util.function.DoublePredicate filter)
DoubleIterablefindFirst in interface DoubleIterablefilter - that should be appliedpublic int count(java.util.function.DoublePredicate filter)
DoubleIterablecount in interface DoubleIterablefilter - that should be applied