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

Kartik Ohri github.com+27751938+amcap1712 at openjdk.java.net
Sat Oct 31 16:47:54 UTC 2020


On Sun, 25 Oct 2020 10:49:01 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!

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

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


More information about the core-libs-dev mailing list