Uses of Annotation Interface
jakarta.validation.Constraint

Packages that use Constraint
Package
Description
Contains all the Jakarta Validation provided constraints also called built-in constraints.
  • Uses of Constraint in jakarta.validation.constraints

    Classes in jakarta.validation.constraints with annotations of type Constraint
    Modifier and Type
    Class
    Description
    @interface 
    The annotated element must be false.
    @interface 
    The annotated element must be true.
    @interface 
    The annotated element must be a number whose value must be lower or equal to the specified maximum.
    @interface 
    The annotated element must be a number whose value must be higher or equal to the specified minimum.
    @interface 
    The annotated element must be a number within accepted range.
    @interface 
    The string has to be a well-formed email address.
    @interface 
    The annotated element must be an instant, date or time in the future.
    @interface 
    The annotated element must be an instant, date or time in the present or in the future.
    @interface 
    The annotated element must be a number whose value must be lower or equal to the specified maximum.
    @interface 
    The annotated element must be a number whose value must be higher or equal to the specified minimum.
    @interface 
    The annotated element must be a strictly negative number (i.e.
    @interface 
    The annotated element must be a negative number or 0.
    @interface 
    The annotated element must not be null and must contain at least one non-whitespace character.
    @interface 
    The annotated element must not be null nor empty.
    @interface 
    The annotated element must not be null.
    @interface 
    The annotated element must be null.
    @interface 
    The annotated element must be an instant, date or time in the past.
    @interface 
    The annotated element must be an instant, date or time in the past or in the present.
    @interface 
    The annotated CharSequence must match the specified regular expression.
    @interface 
    The annotated element must be a strictly positive number (i.e.
    @interface 
    The annotated element must be a positive number or 0.
    @interface 
    The annotated element size must be between the specified boundaries (included).