Fix typos in param names.

This commit is contained in:
Gary Gregory 2021-11-18 12:47:43 -05:00
parent ff415c8f8f
commit a0d20586c4
2 changed files with 6 additions and 6 deletions

View File

@ -246,7 +246,7 @@ public <A, R> R collect(final Collector<? super O, A, R> collector) {
* *
* @param <R> type of the result * @param <R> type of the result
* @param <A> Type of the accumulator. * @param <A> Type of the accumulator.
* @param pupplier a function that creates a new result container. For a * @param supplier a function that creates a new result container. For a
* parallel execution, this function may be called * parallel execution, this function may be called
* multiple times and must return a fresh value each time. * multiple times and must return a fresh value each time.
* @param accumulator An associative, non-interfering, stateless function for * @param accumulator An associative, non-interfering, stateless function for
@ -256,9 +256,9 @@ public <A, R> R collect(final Collector<? super O, A, R> collector) {
* accumulator function * accumulator function
* @return The result of the reduction * @return The result of the reduction
*/ */
public <A, R> R collect(final Supplier<R> pupplier, final BiConsumer<R, ? super O> accumulator, final BiConsumer<R, R> combiner) { public <A, R> R collect(final Supplier<R> supplier, final BiConsumer<R, ? super O> accumulator, final BiConsumer<R, R> combiner) {
makeTerminated(); makeTerminated();
return stream().collect(pupplier, accumulator, combiner); return stream().collect(supplier, accumulator, combiner);
} }
/** /**

View File

@ -300,7 +300,7 @@ public <A, R> R collect(final Collector<? super O, A, R> collector) {
* *
* @param <R> type of the result * @param <R> type of the result
* @param <A> Type of the accumulator. * @param <A> Type of the accumulator.
* @param pupplier a function that creates a new result container. For a parallel execution, this function may * @param supplier a function that creates a new result container. For a parallel execution, this function may
* be called multiple times and must return a fresh value each time. * be called multiple times and must return a fresh value each time.
* @param accumulator An associative, non-interfering, stateless function for incorporating an additional * @param accumulator An associative, non-interfering, stateless function for incorporating an additional
* element into a result * element into a result
@ -308,10 +308,10 @@ public <A, R> R collect(final Collector<? super O, A, R> collector) {
* compatible with the accumulator function * compatible with the accumulator function
* @return The result of the reduction * @return The result of the reduction
*/ */
public <A, R> R collect(final Supplier<R> pupplier, final BiConsumer<R, ? super O> accumulator, public <A, R> R collect(final Supplier<R> supplier, final BiConsumer<R, ? super O> accumulator,
final BiConsumer<R, R> combiner) { final BiConsumer<R, R> combiner) {
makeTerminated(); makeTerminated();
return stream().collect(pupplier, accumulator, combiner); return stream().collect(supplier, accumulator, combiner);
} }
/** /**