long.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv abstract static class | LongPipeline.
type of elements in the upstream source E_IN>Base class for a stateful intermediate stage of a LongStream. |
| pack-priv abstract static class | LongPipeline.
type of elements in the upstream source E_IN>Base class for a stateless intermediate stage of a LongStream. |
| Access | Constructor and Description |
|---|---|
| pack-priv | LongPipeline(Supplier<? extends Spliterator<Long>>
Supplier<Spliterator> describing the stream sourcethe source flags for the stream source, described in
sourceFlags, boolean StreamOpFlagtrue if the pipeline is parallelConstructor for the head of a stream pipeline. |
| pack-priv | LongPipeline(Spliterator<Long>
Spliterator describing the stream sourcethe source flags for the stream source, described in
sourceFlags, boolean StreamOpFlagtrue if the pipeline is parallelConstructor for the head of a stream pipeline. |
| pack-priv | LongPipeline(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 LongConsumer | |
| private static Spliterator. | |
| public final boolean | allMatch(LongPredicate predicate)
Implements java. Returns whether all elements of this stream match the provided predicate. |
| public final boolean | anyMatch(LongPredicate predicate)
Implements java. Returns whether any elements of this stream match the provided predicate. |
| public final DoubleStream | asDoubleStream()
Implements java. Returns a |
| public final OptionalDouble | average()
Implements java. Returns an |
| public final Stream | boxed()
Implements java. Returns a |
| public final <R> R | collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner)
Implements java. Performs a mutable reduction operation on the elements of this stream. |
| public final long | |
| public final LongStream | distinct()
Implements java. Returns a stream consisting of the distinct elements of this stream. |
| public final LongStream | dropWhile(LongPredicate 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<Long> helper, Spliterator<P_IN> spliterator, boolean flattenTree, IntFunction<Long[]> generator)
Implements abstract java. Collect elements output from a pipeline into a Node that holds elements of this shape. |
| public final LongStream | filter(LongPredicate predicate)
Implements java. Returns a stream consisting of the elements of this stream that match the given predicate. |
| public final OptionalLong | findAny()
Implements java. Returns an |
| public final OptionalLong | findFirst()
Implements java. Returns an |
| public final LongStream | flatMap(LongFunction<? extends LongStream> 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(LongConsumer action)
Implements java. Performs an action for each element of this stream. |
| public void | forEachOrdered(LongConsumer action)
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<Long> spliterator, Sink<Long> 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<Long>> 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 LongStream | 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<Long[]> generator)
Implements abstract java. Make a node builder compatible with this stream shape. |
| public final LongStream | map(LongUnaryOperator mapper)
Implements java. Returns a stream consisting of the results of applying the given function to the elements of this stream. |
| public final LongStream | mapMulti(LongStream.
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 DoubleStream | mapToDouble(LongToDoubleFunction mapper)
Implements java. Returns a |
| public final IntStream | mapToInt(LongToIntFunction mapper)
Implements java. Returns an |
| private <U> Stream | |
| public final <U> Stream | mapToObj(LongFunction<? extends U> mapper)
Implements java. Returns an object-valued |
| public final OptionalLong | max()
Implements java. Returns an |
| public final OptionalLong | min()
Implements java. Returns an |
| public final boolean | noneMatch(LongPredicate predicate)
Implements java. Returns whether no elements of this stream match the provided predicate. |
| public final LongStream | peek(LongConsumer 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 long | reduce(long identity, LongBinaryOperator 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 OptionalLong | reduce(LongBinaryOperator op)
Implements java. Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an |
| public final LongStream | skip(long n)
Implements java. Returns a stream consisting of the remaining elements of this stream
after discarding the first |
| public final LongStream | 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 long | |
| public final LongSummaryStatistics | summaryStatistics()
Implements java. Returns a |
| public final LongStream | takeWhile(LongPredicate 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 long[] | toArray()
Implements java. Returns an array containing the elements of this stream. |
| public LongStream | unordered()
Implements java. Returns an equivalent stream that is unordered. |
| pack-priv final <P_IN> Spliterator | wrap(PipelineHelper<Long> 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 |