Annotation Interface Constraint


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Constraint
Indicates that an annotation type can be used for parameter validation. When implementing custom validators, the annotation type must be annotated with this annotation.
See Also:
  • Validators
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    Returns an array of all types this annotation can be used for.
  • Element Details

    • value

      Class<?>[] value
      Returns an array of all types this annotation can be used for.
      Returns:
      an array of all types this annotation can be used for