Example usage for Java java.util.stream DoubleStream fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | allMatch(DoublePredicate predicate) Returns whether all elements of this stream match the provided predicate. |
boolean | anyMatch(DoublePredicate predicate) Returns whether any elements of this stream match the provided predicate. |
OptionalDouble | average() Returns an OptionalDouble describing the arithmetic mean of elements of this stream, or an empty optional if this stream is empty. |
Stream | boxed() Returns a Stream consisting of the elements of this stream, boxed to Double . |
Builder | builder() Returns a builder for a DoubleStream . |
R | collect(Supplier Performs a mutable reduction operation on the elements of this stream. |
DoubleStream | concat(DoubleStream a, DoubleStream b) Creates a lazily concatenated stream whose elements are all the elements of the first stream followed by all the elements of the second stream. |
long | count() Returns the count of elements in this stream. |
DoubleStream | distinct() Returns a stream consisting of the distinct elements of this stream. |
DoubleStream | empty() Returns an empty sequential DoubleStream . |
DoubleStream | filter(DoublePredicate predicate) Returns a stream consisting of the elements of this stream that match the given predicate. |
OptionalDouble | findAny() Returns an OptionalDouble describing some element of the stream, or an empty OptionalDouble if the stream is empty. |
OptionalDouble | findFirst() Returns an OptionalDouble describing the first element of this stream, or an empty OptionalDouble if the stream is empty. |
DoubleStream | flatMap(DoubleFunction extends DoubleStream> mapper) Returns a stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced by applying the provided mapping function to each element. |
void | forEach(DoubleConsumer action) Performs an action for each element of this stream. |
void | forEachOrdered(DoubleConsumer action) Performs an action for each element of this stream, guaranteeing that each element is processed in encounter order for streams that have a defined encounter order. |
DoubleStream | generate(DoubleSupplier s) Returns an infinite sequential unordered stream where each element is generated by the provided DoubleSupplier . |
DoubleStream | iterate(final double seed, final DoubleUnaryOperator f) Returns an infinite sequential ordered DoubleStream produced by iterative application of a function f to an initial element seed , producing a Stream consisting of seed , f(seed) , f(f(seed)) , etc. |
PrimitiveIterator.OfDouble | iterator() |
DoubleStream | limit(long maxSize) Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize in length. |
DoubleStream | map(DoubleUnaryOperator mapper) Returns a stream consisting of the results of applying the given function to the elements of this stream. |
IntStream | mapToInt(DoubleToIntFunction mapper) Returns an IntStream consisting of the results of applying the given function to the elements of this stream. |
LongStream | mapToLong(DoubleToLongFunction mapper) Returns a LongStream consisting of the results of applying the given function to the elements of this stream. |
Stream | mapToObj(DoubleFunction extends U> mapper) Returns an object-valued Stream consisting of the results of applying the given function to the elements of this stream. |
OptionalDouble | max() Returns an OptionalDouble describing the maximum element of this stream, or an empty OptionalDouble if this stream is empty. |
OptionalDouble | min() Returns an OptionalDouble describing the minimum element of this stream, or an empty OptionalDouble if this stream is empty. |
boolean | noneMatch(DoublePredicate predicate) Returns whether no elements of this stream match the provided predicate. |
DoubleStream | of(double t) Returns a sequential DoubleStream containing a single element. |
DoubleStream | of(double... values) Returns a sequential ordered stream whose elements are the specified values. |
DoubleStream | parallel() |
double | reduce(double identity, DoubleBinaryOperator op) Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value. |
OptionalDouble | reduce(DoubleBinaryOperator op) Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an OptionalDouble describing the reduced value, if any. |
DoubleStream | sequential() |
DoubleStream | skip(long n) Returns a stream consisting of the remaining elements of this stream after discarding the first n elements of the stream. |
DoubleStream | sorted() Returns a stream consisting of the elements of this stream in sorted order. |
Spliterator.OfDouble | spliterator() |
double | sum() Returns the sum of elements in this stream. |
DoubleSummaryStatistics | summaryStatistics() Returns a DoubleSummaryStatistics describing various summary data about the elements of this stream. |
double[] | toArray() Returns an array containing the elements of this stream. |