Package com.guinetik.hexafun.hexa
Interface ValidationPort<I>
- Type Parameters:
I- Input type to validate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Port for validating input data before processing by a use case.
-
Method Summary
-
Method Details
-
validate
Validate input data and return a result.- Parameters:
input- The input to validate- Returns:
- A Result containing either the validated input or an error
-