| Constructor and Description |
|---|
Builder(String header,
T[] data,
ColumnFormatter<T> formatter)
The only constructor must start with a column
|
| Modifier and Type | Method and Description |
|---|---|
<T> Table.Builder |
addColumn(String header,
T[] data,
ColumnFormatter<T> formatter)
Add a column to the ColumnBuilder object
|
Table |
build()
Build a table from the content of the builder
|
public Builder(String header, T[] data, ColumnFormatter<T> formatter)
header - A string as the header of the columndata - A generic array of objectsformatter - A formatter for the specific type T. See class ColumnFormatterpublic <T> Table.Builder addColumn(String header, T[] data, ColumnFormatter<T> formatter)
header - A string as the header of the columndata - A generic array of objectsformatter - A formatter for the specific type T. See ColumnFormatter.public Table build()
Copyright © 2016. All rights reserved.