Module io.smallrye.mutiny
Package io.smallrye.mutiny.groups
Class Gatherer.InitialAccumulatorStep<I,ACC>
java.lang.Object
io.smallrye.mutiny.groups.Gatherer.InitialAccumulatorStep<I,ACC>
- Type Parameters:
I- the type of the items emitted by the upstreamMultiACC- the type of the accumulator
The first step in the builder to gather items emitted by a
Multi into an accumulator.-
Method Summary
Modifier and TypeMethodDescriptionaccumulate(BiFunction<ACC, I, ACC> accumulator) Specifies the accumulator function.
-
Method Details
-
accumulate
Specifies the accumulator function.The accumulator function is used to accumulate the items emitted by the upstream.
- Parameters:
accumulator- the accumulator function, which takes the current accumulator and the item emitted by the upstream, and returns the new accumulator- Returns:
- the next step in the builder
-