Class Gatherer.Builder<I>

java.lang.Object
io.smallrye.mutiny.groups.Gatherer.Builder<I>
Type Parameters:
I - the type of the items emitted by the upstream
Enclosing interface:
Gatherer<I,ACC,O>

public static class Gatherer.Builder<I> extends Object
Builder for creating a Gatherer.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • into

      @CheckReturnValue public <ACC> Gatherer.InitialAccumulatorStep<I,ACC> into(Supplier<ACC> initialAccumulatorSupplier)
      Specifies the initial accumulator supplier.

      The initial accumulator supplier is used to create a new accumulator.

      Type Parameters:
      ACC - the type of the accumulator
      Parameters:
      initialAccumulatorSupplier - the supplier for the initial accumulator
      Returns:
      the next step in the builder