Annotation Type 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
      java.lang.Class<? extends java.util.function.Predicate<java.lang.Object>> value
      The validator class used to check that the value is correct.
    • Element Detail

      • value

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