public static interface Stage.Collect extends Stage
This must use the collectors supplier to create an accumulated value, and then the accumulator BiConsumer must
be used to accumulate the received elements in the value. Finally, the returned CompletionStage
must be
redeemed by value returned by the finisher function applied to the accumulated value when the stream terminates
normally, or must be redeemed with an error if the stream terminates with an error.
If the collector throws an exception, the upstream must be cancelled, and the CompletionStage
must be
redeemed with that error.
Stage.Cancel, Stage.Collect, Stage.Concat, Stage.Coupled, Stage.Distinct, Stage.DropWhile, Stage.Failed, Stage.Filter, Stage.FindFirst, Stage.FlatMap, Stage.FlatMapCompletionStage, Stage.FlatMapIterable, Stage.FromCompletionStage, Stage.FromCompletionStageNullable, Stage.Limit, Stage.Map, Stage.Of, Stage.OnComplete, Stage.OnError, Stage.OnErrorResume, Stage.OnErrorResumeWith, Stage.OnTerminate, Stage.Peek, Stage.ProcessorStage, Stage.PublisherStage, Stage.Skip, Stage.SubscriberStage, Stage.TakeWhile
Modifier and Type | Method and Description |
---|---|
Collector<?,?,?> |
getCollector()
The collector.
|
Collector<?,?,?> getCollector()
Copyright © 2019 Eclipse Foundation. All rights reserved.