@Test public void getColumn() { assertThat(dt.getColumn(1), is(Arrays.asList("", "Audi", "Mercedes", "Volvo", "DAF"))); }
public List<String> getColumn(int c) { List<String> result = new ArrayList<>(getRowsCount()); for (List<String> row : data) { result.add(getOrEmpty(row, c)); } return result; }
DataTable { public List<String> getColumn(int c) { List<String> result = new ArrayList<>(getRowsCount()); for (List<String> row : data) { result.add(getOrEmpty(row, c)); } return result; } }
DataTable { public List<String> getColumn(int c) { List<String> result = new ArrayList<>(getRowsCount()); for (List<String> row : data) { result.add(getOrEmpty(row, c)); } return result; } DataTable(int pageNumber);  DataTable(Collection<Integer> pageNumbers); }
DataTable { public List<String> getColumn(int c) { List<String> result = new ArrayList<>(getRowsCount()); for (List<String> row : data) { result.add(getOrEmpty(row, c)); } return result; } DataTable(int pageNumber);  DataTable(Collection<Integer> pageNumbers); DataTable addRow(String... dataRow); void addRow(List<String> dataRow); void addRows(List<List<String>> dataRows); List<String> headerRow(); List<String> headerRowIgnoreBlanks(); boolean hasSameHeaderAs(DataTable other); boolean hasSameHeaderBlanksIgnoredAs(DataTable other); boolean hasSameColumnCountAs(DataTable other); List<List<String>> getData(); TreeSet<Integer> getPageNumbers(); DataTable mergeWith(DataTable other); String getPagesAsString(); boolean hasData(); int getColumnsCount(); int getRowsCount(); List<String> getColumn(int c); List<String> getRow(int r); DataTable mergeColumns(int c1, int c2); void addBlankColumn(int index); @Override String toString(); }
DataTable { public List<String> getColumn(int c) { List<String> result = new ArrayList<>(getRowsCount()); for (List<String> row : data) { result.add(getOrEmpty(row, c)); } return result; } DataTable(int pageNumber);  DataTable(Collection<Integer> pageNumbers); DataTable addRow(String... dataRow); void addRow(List<String> dataRow); void addRows(List<List<String>> dataRows); List<String> headerRow(); List<String> headerRowIgnoreBlanks(); boolean hasSameHeaderAs(DataTable other); boolean hasSameHeaderBlanksIgnoredAs(DataTable other); boolean hasSameColumnCountAs(DataTable other); List<List<String>> getData(); TreeSet<Integer> getPageNumbers(); DataTable mergeWith(DataTable other); String getPagesAsString(); boolean hasData(); int getColumnsCount(); int getRowsCount(); List<String> getColumn(int c); List<String> getRow(int r); DataTable mergeColumns(int c1, int c2); void addBlankColumn(int index); @Override String toString();  }