Skip to content

Commit

Permalink
batchproc, minimal code readability improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-brandizi committed Oct 27, 2023
1 parent 321158b commit 922d4d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
/**
* ## The Batch Collector
*
* A batch collector is a container of methods to manage matches during the operations of
* A batch collector is a container of methods to manage batches during the operations of
* {@link BatchProcessor}. This default interface offers a {@link #batchFactory() batch factory}, used
* to obtain a new batch when needed, and a {@link #batchReadyFlag() ready flag}, which establishes if
* a batch is ready for being processed (eg, it's full wrt o a given size).
* a batch is ready for being processed (eg, it's full wrt a given size).
*
* Significant specific sub-interface are the {@link SizedBatchCollector sized-based collectors}, the
* Significant specific sub-interfaces are the {@link SizedBatchCollector sized-based collectors}, the
* {@link ItemizedSizedBatchCollector item-based one} and their {@link ItemizedSizedBatchCollector intersection}.
*
* Due to some similarity, batch collectors are named after {@link Collector Java stream collectors}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Supplier<C> batchFactory () {

@Override
public BiConsumer<C, E> accumulator () {
return (coll,elem) -> coll.add ( elem );
return C::add;
}

@Override
Expand Down

0 comments on commit 922d4d2

Please sign in to comment.