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.

@FunctionalInterface public interface ValidationPort<I>
Port for validating input data before processing by a use case.
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(I input)
    Validate input data and return a result.
  • Method Details

    • validate

      Result<I> validate(I input)
      Validate input data and return a result.
      Parameters:
      input - The input to validate
      Returns:
      A Result containing either the validated input or an error