public interface DoubleCollection extends java.util.Collection<java.lang.Double>, DoubleIterable
Collection that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double o)
A Type-Specific add function to reduce (un)boxing
|
default boolean |
add(java.lang.Double o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(DoubleCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
contains(double o)
A Type-Specific contains function to reduce (un)boxing
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
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
|
DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default java.util.stream.DoubleStream |
parallelPrimitiveStream()
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
|
default java.util.stream.DoubleStream |
primitiveStream()
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
|
boolean |
remDouble(double o)
A Type-Specific remove function that reduces (un)boxing.
|
default boolean |
remIf(java.util.function.DoublePredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(DoubleCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Double> filter)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
retainAll(DoubleCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
default DoubleSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
double[] |
toDoubleArray()
A Type-Specific toArray function that delegates to
toDoubleArray(double[]) with a newly created array. |
double[] |
toDoubleArray(double[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachboolean add(double o)
o - the element that should be addedboolean addAll(DoubleCollection c)
c - the collection of elements that should be addedboolean contains(double o)
o - the element that is checked forboolean containsAll(DoubleCollection c)
c - the collection of elements that should be tested forboolean containsAny(DoubleCollection c)
c - the collection of elements that should be tested for@Deprecated boolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean remDouble(double o)
o - the element that should be removedCollection.remove(Object)boolean removeAll(DoubleCollection c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean retainAll(DoubleCollection c)
c - the collection of elements that should be keptCollection.retainAll(Collection)double[] toDoubleArray()
toDoubleArray(double[]) with a newly created array.Collection.toArray()double[] toDoubleArray(double[] a)
a - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])@Deprecated default boolean removeIf(java.util.function.Predicate<? super java.lang.Double> filter)
This default implementation delegates to the corresponding type-specific function.
removeIf in interface java.util.Collection<java.lang.Double>default boolean remIf(java.util.function.DoublePredicate filter)
Removes elements that were selected by the filter
filter - Filters the elements that should be removedjava.lang.NullPointerException - if filter is nullCollection.removeIf(Predicate)@Deprecated default boolean add(java.lang.Double o)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Double>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Double>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Double>DoubleIterator iterator()
iterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleIterableiterator in interface java.lang.Iterable<java.lang.Double>Collection.iterator()default java.util.stream.DoubleStream primitiveStream()
default java.util.stream.DoubleStream parallelPrimitiveStream()
default DoubleSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Double>spliterator in interface DoubleIterablespliterator in interface java.lang.Iterable<java.lang.Double>