[External] : Re: New candidate JEP: 485: Stream Gatherers

Viktor Klang viktor.klang at oracle.com
Wed Sep 18 12:49:56 UTC 2024


Hi Olexandr,

The initial set of Gatherers is not currently planned to change. With that said, that doesn't mean that that set is fixed forever, rather we want to see what people end up having to re-implement and see which ones of those would make sense to incorporate down the line.

Cheers,
√


Viktor Klang
Software Architect, Java Platform Group
Oracle
________________________________
From: Olexandr Rotan <rotanolexandr842 at gmail.com>
Sent: Wednesday, 18 September 2024 14:12
To: David Alayachew <davidalayachew at gmail.com>
Cc: core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>; Viktor Klang <viktor.klang at oracle.com>; jdk-dev at openjdk.org <jdk-dev at openjdk.org>
Subject: [External] : Re: New candidate JEP: 485: Stream Gatherers


Is in-built gatherers list finalized? I was thinking that Gatherers::uniqueBy(Function<OUT, DISCRIMINATOR>) could be very popular among stream users, although it is fairly easy to implement yourself (as well as bunch of currently in-built ones though)

On Tue, Sep 3, 2024, 00:59 David Alayachew <davidalayachew at gmail.com<mailto:davidalayachew at gmail.com>> wrote:
Thanks. Glad to see this finally land. That slidingWindow and other related functions are extremely powerful.

On Mon, Sep 2, 2024 at 3:13 PM Mark Reinhold <mark.reinhold at oracle.com<mailto:mark.reinhold at oracle.com>> wrote:
https://openjdk.org/jeps/485

  Summary: Enhance the Stream API to support custom intermediate
  operations.  This will allow stream pipelines to transform data in ways
  that are not easily achievable with the existing built-in intermediate
  operations.

- Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240918/c9d13796/attachment.htm>


More information about the core-libs-dev mailing list