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)StreamOpFlag Constructor 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)StreamOpFlag Constructor 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
a non-interfering,
stateless
predicate to apply to elements of this stream predicate)Implements java. Returns whether all elements of this stream match the provided predicate. |
public final boolean | anyMatch(DoublePredicate
a non-interfering,
stateless
predicate to apply to elements of this stream 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>
a function that creates a new mutable result container.
For a parallel execution, this function may be called
multiple times and must return a fresh value each time. supplier, ObjDoubleConsumer<R> an associative,
non-interfering,
stateless
function that must fold an element into a result
container. accumulator, BiConsumer<R, R> an associative,
non-interfering,
stateless
function that accepts two partial result containers
and merges them, which must be compatible with the
accumulator function. The combiner function must fold
the elements from the second result container into the
first result container. 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
a non-interfering,
stateless
predicate to apply to elements to determine the longest
prefix of elements. 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>
the pipeline helper describing the pipeline stages helper, Spliterator<P_IN> the source spliterator spliterator, boolean true if the returned node should be flattened flattenTree, IntFunction<Double[]> the array generator generator)Implements abstract java. Collect elements output from a pipeline into a Node that holds elements of this shape. |
public final DoubleStream | filter(DoublePredicate
a non-interfering,
stateless
predicate to apply to each element to determine if it
should be included 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>
a non-interfering,
stateless
function to apply to each element which produces a
mapper)DoubleStream of new valuesImplements 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
a
non-interfering action to perform on the elements consumer)Implements java. Performs an action for each element of this stream. |
public void | forEachOrdered(DoubleConsumer
a
non-interfering action to perform on the elements 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>
the spliterator to pull elements from spliterator, Sink<Double> the sink to push elements to 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>>
the supplier of a spliterator 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
the number of elements the stream should be limited to 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
if >=0, then a node builder will be
created that has a fixed capacity of at most sizeIfKnown elements. If
< 0, then the node builder has an unfixed capacity. A fixed
capacity node builder will throw exceptions if an element is added after
builder has reached capacity, or is built before the builder has reached
capacity. exactSizeIfKnown, IntFunction<Double[]> the array generator to be used to create instances of a
T[] array. For implementations supporting primitive nodes, this parameter
may be ignored. generator)Implements abstract java. Make a node builder compatible with this stream shape. |
public final DoubleStream | map(DoubleUnaryOperator
a non-interfering,
stateless
function to apply to each element 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.
a non-interfering,
stateless
function that generates replacement elements mapperOverrides 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
a non-interfering,
stateless
function to apply to each element mapper)Implements java. Returns an |
public final LongStream | mapToLong(DoubleToLongFunction
a non-interfering,
stateless
function to apply to each element mapper)Implements java. Returns a |
private <U> Stream | |
public final <U> Stream | mapToObj(DoubleFunction<? extends U>
a non-interfering,
stateless
function to apply to each element 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
a non-interfering,
stateless
predicate to apply to elements of this stream predicate)Implements java. Returns whether no elements of this stream match the provided predicate. |
public final DoubleStream | peek(DoubleConsumer
a
non-interfering action to perform on the elements as
they are consumed from the stream 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
the identity value for the accumulating function 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
the number of leading elements to skip 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
a non-interfering,
stateless
predicate to apply to elements to determine the longest
prefix of elements. 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>
the pipeline helper describing the pipeline stages ph, Supplier<Spliterator<P_IN>> the supplier of a spliterator supplier, boolean isParallel)Implements abstract java. Create a spliterator that wraps a source spliterator, compatible with
this stream shape, and operations associated with a |