Type Parameters:
T - the type of input elements to the reduction operation
A - the mutable accumulation type of the reduction operation (often hidden as an implementation detail)
R - the result type of the reduction operation

  • Nested Class Summary

    Nested Classes

    static enum 

    Characteristics indicating properties of a Collector, which can be used to optimize reduction implementations.

  • Method Summary

    A function that folds a value into a mutable result container.

    Returns a Set of Collector.Characteristics indicating the characteristics of this Collector.

    combiner()

    A function that accepts two partial results and merges them.

    finisher()

    Perform the final transformation from the intermediate accumulation type A to the final result type R.

    Returns a new Collector described by the given supplier, accumulator, combiner, and finisher functions.

    Returns a new Collector described by the given supplier, accumulator, and combiner functions.

    supplier()

    A function that creates and returns a new mutable result container.

  • Method Details

    • supplier

    • accumulator

    • combiner

    • finisher

    • characteristics

    • of

    • of