Row extends DataAccessor { @Override public Comparable<?> get(int col) { DataSource source = getSource(); if (source == null) { return null; } return source.get(col, getIndex()); } Row(DataSource source, int row); @Override Comparable<?> get(int col); @Override int size(); boolean isColumnNumeric(int columnIndex);  }
@Test public void testGet() { Row row1 = new Row(table, 1); assertEquals(table.get(0, 1), row1.get(0)); assertEquals(table.get(1, 1), row1.get(1)); Row row2 = new Row(null, 1); assertEquals(null, row2.get(0)); assertEquals(null, row2.get(1)); }