Uses of Annotation Interface
javax.validation.Constraint

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

    Classes in javax.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 Supported types are: BigDecimal BigInteger CharSequence byte, short, int, long, and their respective wrapper types
    @interface 
    The annotated element must be a date 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 not be null.
    @interface 
    The annotated element must be null.
    @interface 
    The annotated element must be a date in the past.
    @interface 
    The annotated CharSequence must match the specified regular expression.
    @interface 
    The annotated element size must be between the specified boundaries (included).