@API(status=STABLE) public final class DataTableType extends Object
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Object |
transform(List<List<String>> raw) |
public DataTableType(Type type, TableTransformer<T> transformer)
T - see typetype - the type of the objecttransformer - a function that creates an instance of
type from the data tablepublic DataTableType(Type type, TableRowTransformer<T> transformer)
T - see typetype - the type of the list itemstransformer - a function that creates an instance of
type from the data table rowpublic DataTableType(Type type, TableEntryTransformer<T> transformer)
T - see typetype - the type of the list itemstransformer - a function that creates an instance of
type from the data table entrypublic DataTableType(Type type, TableCellTransformer<T> transformer)
T - see typetype - the type of the list of lists itemstransformer - a function that creates an instance of
type from the data table cellCopyright © 2019. All rights reserved.