public class DataTableBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Try<DataTable> |
build()
Attempts to build the data table from all the details in the chained method calls.
|
static DataTableBuilder |
create(String tableName)
Creates a new instance of a DataTableBuilder, passing table name.
|
<T> DataTableBuilder |
withColumn(Class<T> type,
String columnName,
Iterable<T> data)
Allows an additional column to be added when building a table.
|
<T> DataTableBuilder |
withColumn(Class<T> type,
String columnName,
T... data)
Allows an additional column to be added when building a table.
|
public static DataTableBuilder create(String tableName)
tableName - The name of the table.public <T> DataTableBuilder withColumn(Class<T> type, String columnName, Iterable<T> data)
T - The column type.type - The data type of the column.columnName - The column name.data - The data contained in the column.@SafeVarargs public final <T> DataTableBuilder withColumn(Class<T> type, String columnName, T... data)
T - The column type.type - The data type of the column.columnName - The column name.data - The data contained in the column.public io.vavr.control.Try<DataTable> build()
Copyright © 2017. All rights reserved.