Package guru.mikelue.jdut.decorate
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
LikesDataFieldDecorator
, with iteration of data fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
decorate(DataRow.Builder rowBuilder, DataField<?> dataField)
Iterates the data field.default DataFieldDecorator
predicate(BiPredicate<DataRow.Builder,DataField<?>> dataFieldPredicate)
Builds a decorator which executes decoration if testing of dataFieldPredicate is true.default DataGrainDecorator
toDataGrainDecorator()
Turns this decorator toDataGrainDecorator
.
-
-
-
Method Detail
-
toDataGrainDecorator
default DataGrainDecorator toDataGrainDecorator()
Turns this decorator toDataGrainDecorator
.- Returns:
- new instance of decorator of data grain
-
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 rowdataField
- iterated field currently
-
-