ObservableList API Question
Martin Sladecek
martin.sladecek at oracle.com
Wed Sep 26 00:31:46 PDT 2012
Hi Bruce,
please file these issue into JIRA. http://javafx-jira.kenai.com
<http://javafx-jira.kenai.com/>
Thanks,
-Martin
On 09/25/2012 07:36 PM, Bruce Alspaugh wrote:
> If you look at the API for List, you will see the following methods
> accept plain Objects, or collections of plain Objects:
>
> List#remove(Object o)
> List#removeAll(Collection<?> c);
> List#retainAll(Collection<?> c);
> List#indexOf(Object o)
> List#contains(Object o);
> List#containsAll(Collection<?> c);
>
> So why does ObservableList only accept generic E's in the following
> methods?
>
> ObservableList#removeAll(E... elements)
> ObservableList#retainAll(E... elements)
>
> Also, why is there no corresponding ObservableList#containsAll(Object...
> elements) method?
>
> Bruce
>
>
>
>
More information about the openjfx-dev
mailing list