Uses of Interface java.util.stream.Gatherer (Java SE 23 & JDK 23)
Description: use: module: java.base, package: java.util.stream, interface: Gatherer

# Uses of Interface
java.util.stream.Gatherer

Packages that use GathererPREVIEW
Package
Description
java.util.stream
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

- ## Uses of GathererPREVIEW in java.util.stream

  Methods in java.util.stream that return GathererPREVIEW
  Modifier and Type
  Method
  Description
  `default <RR> GathererPREVIEW<T,?,RR>`
  Gatherer.`andThen(GathererPREVIEW<? super R,?,? extends RR> that)`
  Returns a composed Gatherer which connects the output of this Gatherer to the input of that Gatherer.
  `static <T, R> GathererPREVIEW<T,?,R>`
  Gatherers.`fold(Supplier<R> initial, BiFunction<? super R,? super T,? extends R> folder)`
  Returns a Gatherer that performs an ordered, reduction-like, transformation for scenarios where no combiner-function can be implemented, or for reductions which are intrinsically order-dependent.
  `static <T, R> GathererPREVIEW<T,?,R>`
  Gatherers.`mapConcurrent(int maxConcurrency, Function<? super T,? extends R> mapper)`
  An operation which executes a function concurrently with a configured level of max concurrency, using virtual threads.
  `static <T, A, R> GathererPREVIEW<T,A,R>`
  Gatherer.`of(Supplier<A> initializer, Gatherer.IntegratorPREVIEW<A,T,R> integrator, BinaryOperator<A> combiner, BiConsumer<A,Gatherer.DownstreamPREVIEW<? super R>> finisher)`
  Returns a new, parallelizable, `Gatherer` described by the given `initializer`, `integrator`, `combiner` and `finisher`.
  `static <T, R> GathererPREVIEW<T,Void,R>`
  Gatherer.`of(Gatherer.IntegratorPREVIEW<Void,T,R> integrator)`
  Returns a new, parallelizable, and stateless `Gatherer` described by the given `integrator`.
  `static <T, R> GathererPREVIEW<T,Void,R>`
  Gatherer.`of(Gatherer.IntegratorPREVIEW<Void,T,R> integrator, BiConsumer<Void,Gatherer.DownstreamPREVIEW<? super R>> finisher)`
  Returns a new, parallelizable, and stateless `Gatherer` described by the given `integrator` and `finisher`.
  `static <T, A, R> GathererPREVIEW<T,A,R>`
  Gatherer.`ofSequential(Supplier<A> initializer, Gatherer.IntegratorPREVIEW<A,T,R> integrator)`
  Returns a new, sequential, `Gatherer` described by the given `initializer` and `integrator`.
  `static <T, A, R> GathererPREVIEW<T,A,R>`
  Gatherer.`ofSequential(Supplier<A> initializer, Gatherer.IntegratorPREVIEW<A,T,R> integrator, BiConsumer<A,Gatherer.DownstreamPREVIEW<? super R>> finisher)`
  Returns a new, sequential, `Gatherer` described by the given `initializer`, `integrator`, and `finisher`.
  `static <T, R> GathererPREVIEW<T,Void,R>`
  Gatherer.`ofSequential(Gatherer.IntegratorPREVIEW<Void,T,R> integrator)`
  Returns a new, sequential, and stateless `Gatherer` described by the given `integrator`.
  `static <T, R> GathererPREVIEW<T,Void,R>`
  Gatherer.`ofSequential(Gatherer.IntegratorPREVIEW<Void,T,R> integrator, BiConsumer<Void,Gatherer.DownstreamPREVIEW<? super R>> finisher)`
  Returns a new, sequential, and stateless `Gatherer` described by the given `integrator` and `finisher`.
  `static <T, R> GathererPREVIEW<T,?,R>`
  Gatherers.`scan(Supplier<R> initial, BiFunction<? super R,? super T,? extends R> scanner)`
  Returns a Gatherer that performs a Prefix Scan -- an incremental accumulation -- using the provided functions.
  `static <TR> GathererPREVIEW<TR,?,List<TR>>`
  Gatherers.`windowFixed(int windowSize)`
  Returns a Gatherer that gathers elements into windows -- encounter-ordered groups of elements -- of a fixed size.
  `static <TR> GathererPREVIEW<TR,?,List<TR>>`
  Gatherers.`windowSliding(int windowSize)`
  Returns a Gatherer that gathers elements into windows -- encounter-ordered groups of elements -- of a given size, where each subsequent window includes all elements of the previous window except for the least recent, and adds the next element in the stream.
  Methods in java.util.stream with parameters of type GathererPREVIEW
  Modifier and Type
  Method
  Description
  `default <RR> GathererPREVIEW<T,?,RR>`
  Gatherer.`andThen(GathererPREVIEW<? super R,?,? extends RR> that)`
  Returns a composed Gatherer which connects the output of this Gatherer to the input of that Gatherer.
  `default <R> Stream<R>`
  Stream.`gather(GathererPREVIEW<? super T,?,R> gatherer)`
  Preview.
  Returns a stream consisting of the results of applying the given `Gatherer`PREVIEW to the elements of this stream.