Uses of Interface
java.util.stream.Gatherer.Downstream
Packages that use Gatherer.Downstream
Package
Description
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of Gatherer.Downstream in java.util.stream
Methods in java.util.stream that return types with arguments of type Gatherer.DownstreamModifier and TypeMethodDescriptionstatic <A,R> BiConsumer <A, Gatherer.Downstream<? super R>> Gatherer.defaultFinisher()Returns afinisherwhich is the default finisher of aGatherer.default BiConsumer<A, Gatherer.Downstream<? super R>> Gatherer.finisher()A function which accepts the final intermediate state and aGatherer.Downstreamobject, allowing to perform a final action at the end of input elements.Methods in java.util.stream with parameters of type Gatherer.DownstreamModifier and TypeMethodDescriptionbooleanGatherer.Integrator.integrate(A state, T element, Gatherer.Downstream<? super R> downstream) Performs an action given: the current state, the next element, and a downstream object; potentially inspecting and/or updating the state, optionally sending any number of elements downstream -- and then returns whether more elements are to be consumed or not.Method parameters in java.util.stream with type arguments of type Gatherer.DownstreamModifier and TypeMethodDescriptionstatic <T,A, R> Gatherer <T, A, R> Gatherer.of(Supplier<A> initializer, Gatherer.Integrator<A, T, R> integrator, BinaryOperator<A> combiner, BiConsumer<A, Gatherer.Downstream<? super R>> finisher) Returns a new, parallelizable,Gathererdescribed by the giveninitializer,integrator,combinerandfinisher.Gatherer.of(Gatherer.Integrator<Void, T, R> integrator, BiConsumer<Void, Gatherer.Downstream<? super R>> finisher) Returns a new, parallelizable, and statelessGathererdescribed by the givenintegratorandfinisher.static <T,A, R> Gatherer <T, A, R> Gatherer.ofSequential(Supplier<A> initializer, Gatherer.Integrator<A, T, R> integrator, BiConsumer<A, Gatherer.Downstream<? super R>> finisher) Returns a new, sequential,Gathererdescribed by the giveninitializer,integrator, andfinisher.Gatherer.ofSequential(Gatherer.Integrator<Void, T, R> integrator, BiConsumer<Void, Gatherer.Downstream<? super R>> finisher) Returns a new, sequential, and statelessGathererdescribed by the givenintegratorandfinisher.