-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 7u6
-
Component/s: javafx
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?
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?