RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v13]
John Hendrikx
jhendrikx at openjdk.java.net
Tue Mar 22 07:49:38 UTC 2022
On Tue, 22 Mar 2022 02:21:05 GMT, yosbits <duke at openjdk.java.net> wrote:
> I think you are incorrect about the Null Safe explanation. Wouldn't using Optional solve this?
I'm not sure what you are trying to say, the fluent bindings offered by this API are null safe. Using standard JavaFX you have to do additional work to deal with `null`. You are correct that you can use `Optional` to deal with `null`, but that's still additional work.
-------------
PR: https://git.openjdk.java.net/jfx/pull/675
More information about the openjfx-dev
mailing list