Package io.cucumber.datatable
Class DataTableType
- java.lang.Object
-
- io.cucumber.datatable.DataTableType
-
@API(status=STABLE) public final class DataTableType extends Object
A data table type describes how a data table should be represented as an object.- See Also:
- DataTable - README.md
-
-
Constructor Summary
Constructors Constructor Description DataTableType(Type type, TableCellTransformer<T> transformer)Creates a data table type that transforms the cells of the table into a list of list of objects.DataTableType(Type type, TableEntryTransformer<T> transformer)Creates a data table type that transforms the entries of the table into a list of objects.DataTableType(Type type, TableRowTransformer<T> transformer)Creates a data table type that transforms the rows of the table into a list of objects.DataTableType(Type type, TableTransformer<T> transformer)Creates a data table type that transforms the whole table to a single object.
-
-
-
Constructor Detail
-
DataTableType
public DataTableType(Type type, TableTransformer<T> transformer)
Creates a data table type that transforms the whole table to a single object.- Type Parameters:
T- seetype- Parameters:
type- the type of the objecttransformer- a function that creates an instance oftypefrom the data table
-
DataTableType
public DataTableType(Type type, TableRowTransformer<T> transformer)
Creates a data table type that transforms the rows of the table into a list of objects.- Type Parameters:
T- seetype- Parameters:
type- the type of the list itemstransformer- a function that creates an instance oftypefrom the data table row
-
DataTableType
public DataTableType(Type type, TableEntryTransformer<T> transformer)
Creates a data table type that transforms the entries of the table into a list of objects. An entry consists of the elements of the table header paired with the values of each subsequent row.- Type Parameters:
T- seetype- Parameters:
type- the type of the list itemstransformer- a function that creates an instance oftypefrom the data table entry
-
DataTableType
public DataTableType(Type type, TableCellTransformer<T> transformer)
Creates a data table type that transforms the cells of the table into a list of list of objects.- Type Parameters:
T- seetype- Parameters:
type- the type of the list of lists itemstransformer- a function that creates an instance oftypefrom the data table cell
-
-