RFR: 8367439: Bulk change notifications for ObservableSet and ObservableMap
Andy Goryachev
angorya at openjdk.org
Wed Sep 24 18:04:34 UTC 2025
On Sun, 7 Sep 2025 00:12:31 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> Implementation of bulk change notifications for ObservableSet and ObservableMap.
modules/javafx.base/src/test/java/test/javafx/collections/ObservableMapTest.java line 196:
> 194:
> 195: observer.assertMultipleCalls(call("one", "1", "2"), call("two", "2", "3"));
> 196: }
>From the description:
The implementation is fully backwards-compatible for listeners that
are unaware of the new API. If the next() method is not called, then
all subsequent changes are delivered as usual by repeated listener
invocations.
If a listener only fetches some changes of a bulk operation (but stops
halfway through the operation), the remaining changes will also be
delivered with repeated listener invocations.
1. should this be included in javadoc?
2. could we add a test for this scenario?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1885#discussion_r2330590388
More information about the openjfx-dev
mailing list