Java java.util.stream DoubleStream fields, constructors, methods, implement or subclass

Example usage for Java java.util.stream DoubleStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.stream DoubleStream.

The text is from its open source code.

Method

booleanallMatch(DoublePredicate predicate)
Returns whether all elements of this stream match the provided predicate.
booleananyMatch(DoublePredicate predicate)
Returns whether any elements of this stream match the provided predicate.
OptionalDoubleaverage()
Returns an OptionalDouble describing the arithmetic mean of elements of this stream, or an empty optional if this stream is empty.
Streamboxed()
Returns a Stream consisting of the elements of this stream, boxed to Double .
Builderbuilder()
Returns a builder for a DoubleStream .
Rcollect(Supplier supplier, ObjDoubleConsumer accumulator, BiConsumer combiner)
Performs a mutable reduction operation on the elements of this stream.
DoubleStreamconcat(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.
longcount()
Returns the count of elements in this stream.
DoubleStreamdistinct()
Returns a stream consisting of the distinct elements of this stream.
DoubleStreamempty()
Returns an empty sequential DoubleStream .
DoubleStreamfilter(DoublePredicate predicate)
Returns a stream consisting of the elements of this stream that match the given predicate.
OptionalDoublefindAny()
Returns an OptionalDouble describing some element of the stream, or an empty OptionalDouble if the stream is empty.
OptionalDoublefindFirst()
Returns an OptionalDouble describing the first element of this stream, or an empty OptionalDouble if the stream is empty.
DoubleStreamflatMap(DoubleFunction 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.
voidforEach(DoubleConsumer action)
Performs an action for each element of this stream.
voidforEachOrdered(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.
DoubleStreamgenerate(DoubleSupplier s)
Returns an infinite sequential unordered stream where each element is generated by the provided DoubleSupplier .
DoubleStreamiterate(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.OfDoubleiterator()
DoubleStreamlimit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize in length.
DoubleStreammap(DoubleUnaryOperator mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
IntStreammapToInt(DoubleToIntFunction mapper)
Returns an IntStream consisting of the results of applying the given function to the elements of this stream.
LongStreammapToLong(DoubleToLongFunction mapper)
Returns a LongStream consisting of the results of applying the given function to the elements of this stream.
StreammapToObj(DoubleFunction mapper)
Returns an object-valued Stream consisting of the results of applying the given function to the elements of this stream.
OptionalDoublemax()
Returns an OptionalDouble describing the maximum element of this stream, or an empty OptionalDouble if this stream is empty.
OptionalDoublemin()
Returns an OptionalDouble describing the minimum element of this stream, or an empty OptionalDouble if this stream is empty.
booleannoneMatch(DoublePredicate predicate)
Returns whether no elements of this stream match the provided predicate.
DoubleStreamof(double t)
Returns a sequential DoubleStream containing a single element.
DoubleStreamof(double... values)
Returns a sequential ordered stream whose elements are the specified values.
DoubleStreamparallel()
doublereduce(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.
OptionalDoublereduce(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.
DoubleStreamsequential()
DoubleStreamskip(long n)
Returns a stream consisting of the remaining elements of this stream after discarding the first n elements of the stream.
DoubleStreamsorted()
Returns a stream consisting of the elements of this stream in sorted order.
Spliterator.OfDoublespliterator()
doublesum()
Returns the sum of elements in this stream.
DoubleSummaryStatisticssummaryStatistics()
Returns a DoubleSummaryStatistics describing various summary data about the elements of this stream.
double[]toArray()
Returns an array containing the elements of this stream.