JEP 485: Stream Gatherers
Most likely those will be created by library creators and not end user-developers but still you should know your tools
Parallel Gatherers
Check presentations from Java channel - its hard - leave it library creators
RUN:
StreamGatherersIntroIt shows shortcomings of flatMap, specific goal of multiMap and general gatherer mechanism
RUN :
StreamGatherersParsingExampleAnother example of have gatherers simplify pipeline
RUN :
ReimplementPopularOperationsIllustration how to use gatherers to implement map,multiMap and stateful limit.
RUN:
BuildInGatherersTo see what gatherers are available in : java.util.stream.Gatherers
RUN:
GathererStreamRejectionDemoTo see how to pass rejection signal between stream phases
Last updated