Data { public Column getColumn(final int i) { return this.columns[i]; } Data(final String[][] data, final boolean headings);   Data(final Cell[][] cells, final Data previous); boolean hasHeading(); Width getWidth(); int getHeight(); List<Column> getColumns(); List<Row> getRows(); Column getColumn(final int i); Row getRow(final int i); static Builder builder();  }
@Test public void columns() throws Exception { final List<String> column2 = table.getColumn(1).stream() .map(Data.Cell::getData) .collect(Collectors.toList()); assertEquals("first_name\n" + "Wendie\n" + "Derry\n" + "Heidi\n" + "Elladine\n" + "Erl", Join.join("\n", column2)); }
@Test public void streamColumn() throws Exception { final List<String> column2 = table.getColumn(1).stream() .map(Data.Cell::getData) .collect(Collectors.toList()); assertEquals("first_name\n" + "Wendie\n" + "Derry\n" + "Heidi\n" + "Elladine\n" + "Erl", Join.join("\n", column2)); }