ObservableList bulk methods contract
Nir Lisker
nlisker at gmail.com
Sun Apr 23 12:25:11 UTC 2023
Hi,
ObservableList defines bulk operation methods like 'setAll', 'addAll',
'removeAll' etc. It does not specify that these operations should fire one
change. On the other hand, FXCollections relies, at least on 'setAll', to
have this behavior in the methods 'copy', 'fill', 'reverse', 'rotate' etc.
These all state that one change notification is fired on the supplied
ObservableList, but just calls its 'setAll', so there is no actual
guarantee that only one event will be fired.
Did ObservableList mean to specify that bulk operations are reported as one
change?
- Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230423/30a5b563/attachment-0001.htm>
More information about the openjfx-dev
mailing list