Interface Value.Validator<T>

Type Parameters:
T - the value type
Enclosing interface:
Value<T>
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 static interface Value.Validator<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Validates the given value.
  • Method Details

    • validate

      void validate(@Nullable T value)
      Validates the given value.
      Parameters:
      value - the value to validate
      Throws:
      IllegalArgumentException - in case of an invalid value