double.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv abstract static class | DoublePipeline.
type of elements in the upstream source E_IN>Base class for a stateful intermediate stage of a DoubleStream. |
| pack-priv abstract static class | DoublePipeline.
type of elements in the upstream source E_IN>Base class for a stateless intermediate stage of a DoubleStream. |
| Access | Constructor and Description |
|---|---|
| pack-priv | DoublePipeline(Supplier<? extends Spliterator<Double>>
Supplier<Spliterator> describing the stream sourcethe source flags for the stream source, described in
sourceFlags, boolean parallel)StreamOpFlagConstructor for the head of a stream pipeline. |
| pack-priv | DoublePipeline(Spliterator<Double>
Spliterator describing the stream sourcethe source flags for the stream source, described in
sourceFlags, boolean parallel)StreamOpFlagConstructor for the head of a stream pipeline. |
| pack-priv | DoublePipeline(AbstractPipeline<?, E_IN, ?>
the upstream element source. upstream, int the operation flags opFlags)Constructor for appending an intermediate operation onto an existing pipeline. |
| Modifier and Type | Method and Description |
|---|---|
| private static DoubleConsumer | |
| private static Spliterator. | |
| public final boolean | allMatch(DoublePredicate predicate)
Implements java. Returns whether all elements of this stream match the provided predicate. |
| public final boolean | anyMatch(DoublePredicate predicate)
Implements java. Returns whether any elements of this stream match the provided predicate. |
| public final OptionalDouble | average()
Implements java. Returns an |
| public final Stream | boxed()
Implements java. Returns a |
| public final <R> R | collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R, R> combiner)
Implements java. Performs a mutable reduction operation on the elements of this stream. |
| public final long | count()
Implements java. Returns the count of elements in this stream. |
| public final DoubleStream | distinct()
Implements java. Returns a stream consisting of the distinct elements of this stream. |
| public final DoubleStream | dropWhile(DoublePredicate predicate)
Overrides default java. Returns, if this stream is ordered, a stream consisting of the remaining elements of this stream after dropping the longest prefix of elements that match the given predicate. |
| pack-priv final <P_IN> Node | evaluateToNode(PipelineHelper<Double> helper, Spliterator<P_IN> spliterator, boolean flattenTree, IntFunction<Double[]> generator)
Implements abstract java. Collect elements output from a pipeline into a Node that holds elements of this shape. |
| public final DoubleStream | filter(DoublePredicate predicate)
Implements java. Returns a stream consisting of the elements of this stream that match the given predicate. |
| public final OptionalDouble | findAny()
Implements java. Returns an |
| public final OptionalDouble | findFirst()
Implements java. Returns an |
| public final DoubleStream | flatMap(DoubleFunction<? extends DoubleStream> mapper)
Implements java. 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. |
| public void | forEach(DoubleConsumer consumer)
Implements java. Performs an action for each element of this stream. |
| public void | forEachOrdered(DoubleConsumer consumer)
Implements java. 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. |
| pack-priv final boolean | forEachWithCancel(Spliterator<Double> spliterator, Sink<Double> sink)
Implements abstract java. Traverse the elements of a spliterator compatible with this stream shape, pushing those elements into a sink. |
| pack-priv final StreamShape | getOutputShape()
Implements abstract java. Get the output shape of the pipeline. |
| public final PrimitiveIterator. | iterator()
Implements java. Returns an iterator for the elements of this stream. |
| pack-priv final Spliterator. | lazySpliterator(Supplier<? extends Spliterator<Double>> supplier)
Implements abstract java. Create a lazy spliterator that wraps and obtains the supplied the spliterator when a method is invoked on the lazy spliterator. |
| public final DoubleStream | limit(long maxSize)
Implements java. Returns a stream consisting of the elements of this stream, truncated
to be no longer than |
| pack-priv final Node. | makeNodeBuilder(long exactSizeIfKnown, IntFunction<Double[]> generator)
Implements abstract java. Make a node builder compatible with this stream shape. |
| public final DoubleStream | map(DoubleUnaryOperator mapper)
Implements java. Returns a stream consisting of the results of applying the given function to the elements of this stream. |
| public final DoubleStream | mapMulti(DoubleStream.
Overrides default java. Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements. |
| public final IntStream | mapToInt(DoubleToIntFunction mapper)
Implements java. Returns an |
| public final LongStream | mapToLong(DoubleToLongFunction mapper)
Implements java. Returns a |
| private <U> Stream | |
| public final <U> Stream | mapToObj(DoubleFunction<? extends U> mapper)
Implements java. Returns an object-valued |
| public final OptionalDouble | max()
Implements java. Returns an |
| public final OptionalDouble | min()
Implements java. Returns an |
| public final boolean | noneMatch(DoublePredicate predicate)
Implements java. Returns whether no elements of this stream match the provided predicate. |
| public final DoubleStream | peek(DoubleConsumer action)
Implements java. Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream. |
| public final double | reduce(double identity, DoubleBinaryOperator op)
Implements java. Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value. |
| public final OptionalDouble | reduce(DoubleBinaryOperator op)
Implements java. Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an |
| public final DoubleStream | skip(long n)
Implements java. Returns a stream consisting of the remaining elements of this stream
after discarding the first |
| public final DoubleStream | sorted()
Implements java. Returns a stream consisting of the elements of this stream in sorted order. |
| public final Spliterator. | spliterator()
Overrides java. Implements java. Returns a spliterator for the elements of this stream. |
| public final double | |
| public final DoubleSummaryStatistics | summaryStatistics()
Implements java. Returns a |
| public final DoubleStream | takeWhile(DoublePredicate predicate)
Overrides default java. Returns, if this stream is ordered, a stream consisting of the longest prefix of elements taken from this stream that match the given predicate. |
| public final double[] | toArray()
Implements java. Returns an array containing the elements of this stream. |
| public DoubleStream | unordered()
Implements java. Returns an equivalent stream that is unordered. |
| pack-priv final <P_IN> Spliterator | wrap(PipelineHelper<Double> ph, Supplier<Spliterator<P_IN>> supplier, boolean isParallel)
Implements abstract java. Create a spliterator that wraps a source spliterator, compatible with
this stream shape, and operations associated with a |