Interface DataFieldDecorator

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

    @FunctionalInterface
    public interface DataFieldDecorator
    Likes DataFieldDecorator, with iteration of data fields.
    • Method Detail

      • predicate

        default DataFieldDecorator predicate​(BiPredicate<DataRow.Builder,​DataField<?>> dataFieldPredicate)
        Builds a decorator which executes decoration if testing of dataFieldPredicate is true.
        Parameters:
        dataFieldPredicate - The predicate of row builder
        Returns:
        new decorator with checking of dataFieldPredicate
      • decorate

        void decorate​(DataRow.Builder rowBuilder,
                      DataField<?> dataField)
        Iterates the data field.
        Parameters:
        rowBuilder - used to modify the data of row
        dataField - iterated field currently