# Uses of Annotation Interface
javax.validation.Constraint

Packages that use Constraint
Package
Description
javax.validation.constraints

## Uses of Constraint in javax.validation.constraints

Classes in javax.validation.constraints with annotations of type Constraint
Modifier and Type
Class
Description
`@interface`
`AssertFalse`
Verify that the annotated element is either `false`, `Boolean.FALSE` or `null`.
`@interface`
`AssertTrue`
Verify that the annotated element is either `true`, `Boolean.TRUE` or `null`.
`@interface`
`DecimalMax`
Verify that the annotated element has a number which is lower or equal than the given value or is `null`.
`@interface`
`DecimalMin`
Verify that the annotated element has a number which is higher or equal than the given value or is `null`.
`@interface`
`Digits`
Specify the number of maximal allowed digits for the fraction part and the digit size.
`@interface`
`Future`
Verify that the annotated value of the annotated element is in the future or `null`.
`@interface`
`Max`
Verify that the annotated element has a number which is lower or equal than the given value or is `null`.
`@interface`
`Min`
Verify that the annotated element has a number which is higher or equal than the given value or is `null`.
`@interface`
`NotNull`
Constraint to verify that the validated field, parameter, etc is not `null`.
`@interface`
`Null`
Constraint to verify that the validated field, parameter, etc is `null`.
`@interface`
`Past`
Verify that the annotated value of the annotated element is in the past or `null`.
`@interface`
`Pattern`
Constraint to verify that the validated field, parameter, etc matches the given regexp pattern.
`@interface`
`Size`
Verify that size of the annotated element is higher or equals the min value and lower or equals the max value or whether the annotated element is `null`.