mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 19:45:01 +00:00
Fix typos in param names.
This commit is contained in:
parent
ff415c8f8f
commit
a0d20586c4
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user