RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]
Viktor Klang
vklang at openjdk.org
Thu Nov 9 21:18:21 UTC 2023
On Thu, 9 Nov 2023 14:21:55 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> 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.
@AlanBateman Good point. I may have assumed too much. Perhaps something along the lines of:
"Returns a Gatherer which gathers elements into windows -- encounter-ordered groups of elements -- …" ?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1388586922
More information about the core-libs-dev
mailing list