@Test public void columnCount() { final String[][] rows = new String[4][]; rows[0] = new String[]{""}; rows[1] = new String[]{"", "", "", "", ""}; rows[2] = new String[]{"", "", "", ""}; rows[3] = new String[]{"", "", ""}; final Data table = new Data(rows, false); assertEquals(5, table.getColumns().size()); }
public List<Column> getColumns() { return Arrays.asList(columns); }
Data { public List<Column> getColumns() { return Arrays.asList(columns); } }
Data { public List<Column> getColumns() { return Arrays.asList(columns); } Data(final String[][] data, final boolean headings);   Data(final Cell[][] cells, final Data previous); }
Data { public List<Column> getColumns() { return Arrays.asList(columns); } 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(); }
Data { public List<Column> getColumns() { return Arrays.asList(columns); } 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();  }