RFR: 8186085: (opt) add filter(), flatMap(), and map() methods to OptionalDouble/Int/Long

Kartik Ohri github.com+27751938+amcap1712 at openjdk.java.net
Sun Nov 1 13:22:54 UTC 2020


On Sat, 31 Oct 2020 16:45:06 GMT, Kartik Ohri <github.com+27751938+amCap1712 at openjdk.org> wrote:

>> Hi all,
>> This PR intends to add filter, map and flatMap methods to the Optional classes for primitives. The rationale is consistency with the Optional class for objects and user convenience.
>> Thanks.
>> Regards,
>> Kartik
>
> Kindly review the patch. Thanks in advance!

Thank you for the suggestions. I'll try fixing some bugs first. Should I close this PR as well or leave it open ?

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

PR: https://git.openjdk.java.net/jdk/pull/857


More information about the core-libs-dev mailing list