Interface SheetChangeHandler<T>
-
- Type Parameters:
T- type of the data
- 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 SheetChangeHandler<T>
Handler for data changes in the sheet.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SheetChangeHandler<T>compose(Consumer<SheetChange<T>> consumer)CompletionStage<Collection<ValidationError>>onChange(SheetChange<T> change)Called when data change is received.static <T> SheetChangeHandler<T>valid()
-
-
-
Method Detail
-
onChange
CompletionStage<Collection<ValidationError>> onChange(SheetChange<T> change)
Called when data change is received.- Parameters:
change- user changes- Returns:
- stage that will complete with collection of validation errors or empty collection when changes are valid.
-
compose
default SheetChangeHandler<T> compose(Consumer<SheetChange<T>> consumer)
-
valid
static <T> SheetChangeHandler<T> valid()
-
-