API Review: Use ObservableNumberValue as parameter for valueAt() methods
Michael Heinrichs
michael.heinrichs at oracle.com
Tue Sep 18 00:19:26 PDT 2012
Hi,
currently the various valueAt() methods expect an ObservableIntegerValue for the index. (The valueAt() methods create a binding to request a specific element in an ObservableList.) This is wrong, the type should have been an ObservableNumberValue, because this fits to the general philosophy of the binding API. (In general the binding API tries to loosen the type system as much as possible without dropping the ability to use primitives internally.)
I want to add new versions of the various valueAt() methods that expect ObservableNumberValue for the index. The current methods will be marked as deprecated and should be removed in a future incompatible update of the JavaFX API.
Thanks,
Michael
More information about the openjfx-dev
mailing list