Module java.base

Interface Gatherer.Integrator<A,T,R>

Type Parameters:
A - the type of state used by this integrator
T - the type of elements this integrator consumes
R - the type of results this integrator can produce
All Known Subinterfaces:
Gatherer.Integrator.GreedyPREVIEW<A,T,R>
Enclosing interface:
GathererPREVIEW<T,A,R>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Gatherer.Integrator<A,T,R>
Integrator is a preview API of the Java platform.
Programs can only use Integrator when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An Integrator receives elements and processes them, optionally using the supplied state, and optionally sends incremental results downstream.
Since:
22