RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v15]
Michael Strauß
mstrauss at openjdk.org
Wed Jun 29 01:08:55 UTC 2022
On Wed, 29 Jun 2022 00:17:53 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
> Any suggestions what I should add?
>
> I can add a `@see` tag, and/or I could add a note in the description, something along the line of "Note: since 19, ObservableValue#flatMap directly supports creating new bindings for JavaFX properties."
>
> Note that `Bindings.select` also allows for JavaBeans properties, which are not supported by `flatMap`.
I think we should not only inform, but advise people to use `flatMap`:
"Since 19, it is recommended to use ObservableValue#flatMap to select a nested member of an ObservableValue."
-------------
PR: https://git.openjdk.org/jfx/pull/675
More information about the openjfx-dev
mailing list