RFR 8144675: Add a filtering collector
ShinyaYoshida
bitterfoxc at gmail.com
Mon Dec 7 02:45:05 UTC 2015
Hi,
I'd like to wait for the review, but I have a trivial question:
Which @since is preferred, 1.9 or 9?
For ex, at Optional#or and stream, @since 9 is used.
On the other hand, at Collectors#flatMap, @since 1.9 is used.
Regards,
shinyafox(Shinya Yoshida)
2015-12-05 22:18 GMT+09:00 Paul Sandoz <paul.sandoz at oracle.com>:
>
> On 4 Dec 2015, at 23:05, Brian Goetz <brian.goetz at Oracle.COM> wrote:
>
> This seems reasonable; mapping() already exists for use in this space (as
> a combinator for the downstream collector of groupingBy and friends),
> filtering() is also reasonable in this context.
>
>
> Agreed, i like it, and will review it more closely next week.
>
> FWIW one can use Collectors.flatMapping to achieve similar functionality,
> but it’s a little awkward for such filtering use-cases.
>
> Thanks,
> Paul.
>
More information about the core-libs-dev
mailing list