| Modifier and Type | Method and Description |
|---|---|
| public Table | Returns: the initializedTablea map of header to column values, in display order columns)Initializes the table from a column-oriented data source, where each entry maps a header to the values in that column, top to bottom. |
| public Table | Returns: the initializedTablethe rows, with the first row treated as headers rows)Initializes the table from a row-oriented data source. |
| public Table | |
| public Table | Returns: the initializedTablethe header labels headers)
Deprecated
since 4.0.3. in favor of the
SequencedCollection overload
Sets the table headers. |
| public Table | Returns: the initializedTablethe header labels, in display order headers)Sets the table headers. |
| fromColumns | back to summary |
|---|---|
| public Table fromColumns(SequencedMap<String, ? extends SequencedCollection<String>> columns) Initializes the table from a column-oriented data source, where each entry maps a header to the values in that column, top to bottom. Columns of differing lengths are padded to the longest column.
| |
| fromRows | back to summary |
|---|---|
| public Table fromRows(SequencedCollection<? extends SequencedCollection<String>> rows) Initializes the table from a row-oriented data source. The first row is used as the table headers; all subsequent rows are added as data rows.
| |
| headers | back to summary |
|---|---|
| public Table headers(String... headers) Sets the table headers. | |
| headers | back to summary |
|---|---|
| public Table headers(Collection<String> headers)
Sets the table headers.
| |
| headers | back to summary |
|---|---|
| public Table headers(SequencedCollection<String> headers) Sets the table headers.
| |