Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
6.0.0-beta3
-
None
Description
DataTable constructor requires List<IColumn<T, S>>. My T and S types are parameterized, with multiple parameters. This leads to a lot of typing.
List<IColumn<MyObject<T>, Descriptor<MyObject<T>, SomethingElse>>> columns = ....
I want to be able to subclass IColumn<T, S> calling MyColumn<T> with hiding all those type parameters, and take only one type parameter. Like:
class MyColumn<T> implements IColumn<MyObject<T>, Descriptor<MyObject<T>, SomethingElse>>{}
but I cannot pass a List<MyColumn<T>> to DataTable constructor. DataTable should take List<? extends IColumn<T, S>> instead of List<IColumn<T, S>>