Example usage for Java java.util.stream Collector fields, constructors, methods, implement or subclass
The text is from its open source code.
BiConsumer | accumulator() A function that folds a value into a mutable result container. |
Set | characteristics() Returns a Set of Collector.Characteristics indicating the characteristics of this Collector. |
BinaryOperator | combiner() A function that accepts two partial results and merges them. |
Function | finisher() Perform the final transformation from the intermediate accumulation type A to the final result type R . |
Collector | of(Supplier Returns a new Collector described by the given supplier , accumulator , and combiner functions. |
Collector | of(Supplier supplier, BiConsumer accumulator, BinaryOperator combiner, Function finisher, Characteristics... characteristics) Returns a new Collector described by the given supplier , accumulator , combiner , and finisher functions. |
Supplier | supplier() A function that creates and returns a new mutable result container. |