Interface TableEntryByTypeTransformer

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @API(status=STABLE)
    @FunctionalInterface
    public interface TableEntryByTypeTransformer
    Default transformer for entries which don't have registered DataTableType. Similar to TableEntryTransformer but additionally it receives Class<T> of expected object and TableCellByTypeTransformer for transforming individual cells from String to arbitrary type.
    See Also:
    TableEntryTransformer
    • Method Detail

      • transform

        Object transform​(Map<String,​String> entryValue,
                         Type toValueType,
                         TableCellByTypeTransformer cellTransformer)
                  throws Throwable
        This method should transform row represented by key-value map to object of type type
        Parameters:
        entryValue - table entry, key - column name, value - cell
        toValueType - type of an expected object to return
        cellTransformer - cell transformer
        Returns:
        new instance of type
        Throws:
        Throwable - unable to transform