public interface DoubleCollection extends java.util.Collection<java.lang.Double>, DoubleIterable
Collection
for {code double} values. Supplements all Double
-valued
methods with corresponding double
-valued methods.Modifier and Type | Interface and Description |
---|---|
static class |
DoubleCollection.Base
Base class for
DoubleCollection implementations. |
Modifier and Type | Method and Description |
---|---|
default boolean |
add(java.lang.Double x) |
default boolean |
addAll(java.util.Collection<? extends java.lang.Double> c) |
default boolean |
addAllDoubles(double... xs) |
default boolean |
addAllDoubles(DoubleCollection c) |
default boolean |
addDouble(double x)
Deprecated.
Use
addDoubleExactly(double) instead. |
default boolean |
addDouble(double x,
double precision) |
default boolean |
addDoubleExactly(double x) |
default void |
clear() |
default boolean |
contains(java.lang.Object o) |
default boolean |
containsAll(java.util.Collection<?> c) |
default boolean |
isEmpty() |
default boolean |
remove(java.lang.Object o) |
default boolean |
removeAll(java.util.Collection<?> c) |
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Double> filter) |
default boolean |
retainAll(java.util.Collection<?> c) |
default java.util.Spliterator.OfDouble |
spliterator() |
default java.lang.Double[] |
toArray() |
default <T> T[] |
toArray(T[] a) |
default double[] |
toDoubleArray()
Collect the
doubles in this DoubleCollection into an double -array. |
equals, hashCode, iterator, parallelStream, size, stream
containsAllDoubles, containsAllDoubles, containsAllDoublesExactly, containsAllDoublesExactly, containsAnyDoubles, containsAnyDoubles, containsAnyDoublesExactly, containsAnyDoublesExactly, containsDouble, containsDoubleExactly, doubleStream, forEach, forEachDouble, from, from, iterator, of, once, once, parallelDoubleStream, removeAllDoubles, removeAllDoubles, removeAllDoublesExactly, removeAllDoublesExactly, removeDouble, removeDoubleExactly, removeDoublesIf, retainAllDoubles, retainAllDoubles, retainAllDoublesExactly, retainAllDoublesExactly, sequence
default boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Double>
isEmpty
in interface DoubleIterable
default void clear()
clear
in interface java.util.Collection<java.lang.Double>
clear
in interface DoubleIterable
default java.lang.Double[] toArray()
toArray
in interface java.util.Collection<java.lang.Double>
default <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<java.lang.Double>
default double[] toDoubleArray()
doubles
in this DoubleCollection
into an double
-array.default boolean add(java.lang.Double x)
add
in interface java.util.Collection<java.lang.Double>
@Deprecated default boolean addDouble(double x)
addDoubleExactly(double)
instead.addDoubleExactly(double)
default boolean addDoubleExactly(double x)
addDouble(double, double)
default boolean addDouble(double x, double precision)
addDoubleExactly(double)
default boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<java.lang.Double>
default boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<java.lang.Double>
default boolean addAll(java.util.Collection<? extends java.lang.Double> c)
addAll
in interface java.util.Collection<java.lang.Double>
default boolean addAllDoubles(double... xs)
default boolean addAllDoubles(DoubleCollection c)
default boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<java.lang.Double>
default boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<java.lang.Double>
default boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<java.lang.Double>
default boolean removeIf(java.util.function.Predicate<? super java.lang.Double> filter)
removeIf
in interface java.util.Collection<java.lang.Double>
default java.util.Spliterator.OfDouble spliterator()
spliterator
in interface java.util.Collection<java.lang.Double>
spliterator
in interface DoubleIterable
spliterator
in interface java.lang.Iterable<java.lang.Double>