Fix typos in param names.
This commit is contained in:
parent
ff415c8f8f
commit
a0d20586c4
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue