RFR: 8290040: Provide simplified deterministic way to manage listeners [v2]
Nir Lisker
nlisker at openjdk.org
Thu Sep 1 12:59:34 UTC 2022
On Thu, 1 Sep 2022 12:35:21 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
>> `when` sounds fine, but we need to be careful about its relation to the `When` class.
>>
>> This reminds me also that some of the new functionality in `ObservableValue` can be used as a replacement for `When`, maybe we should note that like we did with `Bindings.select`.
>
> Do you want me to make this part of the PR? Basically, `Bindings.when` with `map` or `flatMap` depending on whether or not you refer to a value or another property in `then` or `otherwise`.
Changing the documentation for `When` should not be part of this PR I think. What we should do maybe is add a note that this method should not be confused with `Bindings.when`. I'll let others weigh in.
-------------
PR: https://git.openjdk.org/jfx/pull/830
More information about the openjfx-dev
mailing list