Annotation Interface SpecValidator


@Retention(RUNTIME) @Target(FIELD) public @interface SpecValidator
Indicates that the value of the field must be validated by the specified validator class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Predicate<Object>>
    The validator class used to check that the value is correct.
  • Element Details

    • value

      Class<? extends Predicate<Object>> value
      The validator class used to check that the value is correct.
      Returns:
      the validator class