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 class Streams {
*
* @param <R> type of the result
* @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
* multiple times and must return a fresh value each time.
* @param accumulator An associative, non-interfering, stateless function for
@ -256,9 +256,9 @@ public class Streams {
* accumulator function
* @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();
return stream().collect(pupplier, accumulator, combiner);
return stream().collect(supplier, accumulator, combiner);
}
/**

View File

@ -300,7 +300,7 @@ public class Streams {
*
* @param <R> type of the result
* @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.
* @param accumulator An associative, non-interfering, stateless function for incorporating an additional
* element into a result
@ -308,10 +308,10 @@ public class Streams {
* compatible with the accumulator function
* @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) {
makeTerminated();
return stream().collect(pupplier, accumulator, combiner);
return stream().collect(supplier, accumulator, combiner);
}
/**