U.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ReferencePipeline.
type of elements in the upstream source E_IN, type of elements in produced by this stage E_OUT>Source stage of a ReferencePipeline. |
| pack-priv abstract static class | ReferencePipeline.
type of elements in the upstream source E_IN, type of elements in produced by this stage E_OUT>Base class for a stateful intermediate stage of a Stream. |
| pack-priv abstract static class | ReferencePipeline.
type of elements in the upstream source E_IN, type of elements in produced by this stage E_OUT>Base class for a stateless intermediate stage of a Stream. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReferencePipeline(Supplier<? extends Spliterator<?>>
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 | ReferencePipeline(Spliterator<?>
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 | ReferencePipeline(AbstractPipeline<?, P_IN, ?>
the upstream element source upstream, int The operation flags for this operation, described in
opFlags)StreamOpFlagConstructor for appending an intermediate operation onto an existing pipeline. |
| protected | ReferencePipeline(AbstractPipeline<?, P_IN, ?>
the upstream of the upstream element source upupstream, AbstractPipeline<?, P_IN, ?> the upstream element source upstream, int The operation flags for this operation, described in
opFlags)StreamOpFlagConstructor for appending an intermediate operation onto an existing pipeline. |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | allMatch(Predicate<? super P_OUT> predicate)
Implements java. Returns whether all elements of this stream match the provided predicate. |
| public final boolean | anyMatch(Predicate<? super P_OUT> predicate)
Implements java. Returns whether any elements of this stream match the provided predicate. |
| public <R, A> R | collect(Collector<? super P_OUT, A, R> collector)
Implements java. Performs a mutable
reduction operation on the elements of this stream using a
|
| public <R> R | collect(Supplier<R> supplier, BiConsumer<R, ? super P_OUT> accumulator, BiConsumer<R, R> combiner)
Implements java. Performs a mutable reduction operation on the elements of this stream. |
| public final long | |
| public final Stream | distinct()
Implements java. Returns a stream consisting of the distinct elements (according to
|
| public final Stream | dropWhile(Predicate<? super P_OUT> 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<P_OUT> helper, Spliterator<P_IN> spliterator, boolean flattenTree, IntFunction<P_OUT[]> generator)
Implements abstract java. Collect elements output from a pipeline into a Node that holds elements of this shape. |
| public final Stream | filter(Predicate<? super P_OUT> predicate)
Implements java. Returns a stream consisting of the elements of this stream that match the given predicate. |
| public final Optional | findAny()
Implements java. Returns an |
| public final Optional | findFirst()
Implements java. Returns an |
| public final <R> Stream | flatMap(Function<? super P_OUT, ? extends Stream<? extends R>> 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 final DoubleStream | flatMapToDouble(Function<? super P_OUT, ? extends DoubleStream> mapper)
Implements java. Returns an |
| public final IntStream | flatMapToInt(Function<? super P_OUT, ? extends IntStream> mapper)
Implements java. Returns an |
| public final LongStream | flatMapToLong(Function<? super P_OUT, ? extends LongStream> mapper)
Implements java. Returns an |
| public void | forEach(Consumer<? super P_OUT> action)
Implements java. Performs an action for each element of this stream. |
| public void | forEachOrdered(Consumer<? super P_OUT> action)
Implements java. Performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order. |
| pack-priv final boolean | forEachWithCancel(Spliterator<P_OUT> spliterator, Sink<P_OUT> sink)
Implements abstract java. Traverse the elements of a spliterator compatible with this stream shape, pushing those elements into a sink. |
| public final <R> Stream | gather(Gatherer<? super P_OUT, ?, R> gatherer)
Overrides default java. Returns a stream consisting of the results of applying the given
|
| pack-priv final StreamShape | getOutputShape()
Implements abstract java. Get the output shape of the pipeline. |
| public final Iterator | iterator()
Implements java. Returns an iterator for the elements of this stream. |
| pack-priv final Spliterator | lazySpliterator(Supplier<? extends Spliterator<P_OUT>> 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 Stream | 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<P_OUT[]> generator)
Implements abstract java. Make a node builder compatible with this stream shape. |
| public final <R> Stream | map(Function<? super P_OUT, ? extends R> mapper)
Implements java. Returns a stream consisting of the results of applying the given function to the elements of this stream. |
| public final <R> Stream | mapMulti(BiConsumer<? super P_OUT, ? super Consumer<R>> mapper)
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 | mapMultiToDouble(BiConsumer<? super P_OUT, ? super DoubleConsumer> mapper)
Overrides default java. Returns a |
| public final IntStream | mapMultiToInt(BiConsumer<? super P_OUT, ? super IntConsumer> mapper)
Overrides default java. Returns an |
| public final LongStream | mapMultiToLong(BiConsumer<? super P_OUT, ? super LongConsumer> mapper)
Overrides default java. Returns a |
| public final DoubleStream | mapToDouble(ToDoubleFunction<? super P_OUT> mapper)
Implements java. Returns a |
| public final IntStream | mapToInt(ToIntFunction<? super P_OUT> mapper)
Implements java. Returns an |
| public final LongStream | mapToLong(ToLongFunction<? super P_OUT> mapper)
Implements java. Returns a |
| public final Optional | max(Comparator<? super P_OUT> comparator)
Implements java. Returns the maximum element of this stream according to the provided
|
| public final Optional | min(Comparator<? super P_OUT> comparator)
Implements java. Returns the minimum element of this stream according to the provided
|
| public final boolean | noneMatch(Predicate<? super P_OUT> predicate)
Implements java. Returns whether no elements of this stream match the provided predicate. |
| public final Stream | peek(Consumer<? super P_OUT> 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 P_OUT | reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator)
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 Optional | reduce(BinaryOperator<P_OUT> accumulator)
Implements java. Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an |
| public final <R> R | reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<R> combiner)
Implements java. Performs a reduction on the elements of this stream using the provided identity value, accumulation function, and combining function. |
| public final Stream | skip(long n)
Implements java. Returns a stream consisting of the remaining elements of this stream
after discarding the first |
| public final Stream | sorted()
Implements java. Returns a stream consisting of the elements of this stream, sorted according to natural order. |
| public final Stream | sorted(Comparator<? super P_OUT> comparator)
Implements java. Returns a stream consisting of the elements of this stream, sorted
according to the provided |
| public final Stream | takeWhile(Predicate<? super P_OUT> 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 <A> A[] | toArray(IntFunction<A[]> generator)
Implements java. Returns an array containing the elements of this stream, using the
provided |
| public final Object[] | toArray()
Implements java. Returns an array containing the elements of this stream. |
| public List | toList()
Overrides default java. Accumulates the elements of this stream into a |
| public Stream | unordered()
Implements java. Returns an equivalent stream that is unordered. |
| pack-priv final <P_IN> Spliterator | wrap(PipelineHelper<P_OUT> 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 |