File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
src/main/java/net/imagej/table Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 3131
3232package net .imagej .table ;
3333
34- import org .scijava .util .SizableArrayList ;
34+ import org .scijava .util .ObjectArray ;
3535
3636/**
3737 * Default implementation of {@link Column}.
3838 *
3939 * @author Curtis Rueden
4040 * @param <T> The type of data stored in the table.
4141 */
42- public class DefaultColumn <T > extends SizableArrayList <T > implements Column <T > {
42+ public class DefaultColumn <T > extends ObjectArray <T > implements Column <T > {
4343
4444 /** The type of this column. */
45- private Class <T > type ;
45+ private final Class <T > type ;
4646
4747 /** The column header. */
4848 private String header ;
4949
50- public DefaultColumn () {}
50+ public DefaultColumn (final Class <T > type ) {
51+ super (type );
52+ this .type = type ;
53+ }
5154
5255 public DefaultColumn (final Class <T > type , final String header ) {
56+ super (type );
5357 this .type = type ;
5458 this .header = header ;
5559 }
Original file line number Diff line number Diff line change 3636 *
3737 * @author Curtis Rueden
3838 */
39- public class DefaultGenericTable extends AbstractTable < GenericColumn , Object >
40- implements GenericTable
39+ public class DefaultGenericTable extends
40+ AbstractTable < Column <? extends Object >, Object > implements GenericTable
4141{
4242
4343 /** Creates an empty table. */
Original file line number Diff line number Diff line change 3939public class GenericColumn extends DefaultColumn <Object > {
4040
4141 public GenericColumn () {
42- super ();
42+ super (Object . class );
4343 }
4444
4545 public GenericColumn (final String header ) {
Original file line number Diff line number Diff line change 3636 *
3737 * @author Curtis Rueden
3838 */
39- public interface GenericTable extends Table <GenericColumn , Object > {
39+ public interface GenericTable extends Table <Column <? extends Object > , Object > {
4040 // NB: No implementation needed.
4141}
You can’t perform that action at this time.
0 commit comments