Interface Task.Collector<T,​A,​R>

    • Method Detail

      • accumulator

        BiConsumer<A,​T> accumulator()
        A function that folds Task results into a mutable result container.
        Returns:
        a function that folds Task results into a mutable result container
      • finisher

        Function<A,​R> finisher()
        Perform the final transformation from the intermediate accumulation type A to the final result type R.
        Returns:
        a function which transforms the intermediate result to the final result
      • finishable

        Remote.Predicate<A> finishable()
        A Remote.Predicate to determine if a result container can be finished early avoiding further accumulation of results using the container.

        Should there be no further results to accumulate, finishing the result container with the finisher() will occur regardless of the result returned by the Remote.Predicate.

        Returns:
        a Remote.Predicate
      • supplier

        Supplier<A> supplier()
        A function that creates and returns a new mutable result container.
        Returns:
        a function which returns a new mutable result container