@Immutable
public class TableLayout
extends java.lang.Object
A layout for a table to be written. Specifies the columns in the table. Column names must be unique.
Modifier and Type | Method and Description |
---|---|
int |
columnIndex(java.lang.String col)
Get the index of a particular column.
|
int |
getColumnCount()
Get the number of columns in this layout.
|
java.util.List<java.lang.String> |
getColumns()
Get the headers of the columns.
|
RowBuilder |
newRowBuilder()
Create a new row builder for this layout.
|
public java.util.List<java.lang.String> getColumns()
Get the headers of the columns.
public int columnIndex(java.lang.String col)
Get the index of a particular column.
col
- The column.java.lang.IllegalArgumentException
- if the column is not in the layout.public int getColumnCount()
Get the number of columns in this layout.
public RowBuilder newRowBuilder()
Create a new row builder for this layout.