On Thu, 9 Nov 2023 09:42:41 GMT, Viktor Klang <vkl...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/stream/Gatherers.java line 326:
>> 
>>> 324: 
>>> 325:     /**
>>> 326:      * Gathers elements into fixed-size windows. The last window may 
>>> contain
>> 
>> Returns a ...
>
> You mean "Returns a Gatherer which gathers elements into ..." ?

Is "window" defined anywhere? If you are doing another pass over the docs then 
the windowXXX methods could be expanded a bit to explain this grouping concept. 
Also it could say that the last windows (if it exists, the empty stream is the 
corner case) has at least one element.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1388076803

Reply via email to