public final class DataTableType extends Object
Constructor and Description |
---|
DataTableType(Class<T> type,
TableCellTransformer<T> transformer)
Creates a data table type that transforms the cells of the table into a list of lists of objects.
|
DataTableType(Class<T> type,
TableEntryTransformer<T> transformer)
Creates a data table type that transforms the entries of the table into a list of objects.
|
DataTableType(Class<T> type,
TableRowTransformer<T> transformer)
Creates a data table type that transforms the rows of the table into a list of objects.
|
DataTableType(Class<T> 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(Class<T> type, TableTransformer<T> transformer)
T
- see type
type
- the type of the objecttransformer
- a function that creates an instance of type
from the data tablepublic DataTableType(Class<T> type, TableRowTransformer<T> transformer)
T
- see type
type
- the type of the list itemstransformer
- a function that creates an instance of type
from the data table rowpublic DataTableType(Class<T> type, TableEntryTransformer<T> transformer)
T
- see type
type
- the type of the list itemstransformer
- a function that creates an instance of type
from the data table entrypublic DataTableType(Class<T> type, TableCellTransformer<T> transformer)
T
- see type
type
- the type of the list of lists itemstransformer
- a function that creates an instance of type
from the data table cellCopyright © 2018. All rights reserved.