Package jakarta.validation.constraints
Contains all the Jakarta Bean Validation provided constraints
also called built-in constraints.
These constraints do not cover all functional use cases but do represent all the fundamental blocks to express low level constraints on basic JDK types.
-
Enum Summary Enum Description Pattern.Flag Possible Regexp flags. -
Annotation Types Summary Annotation Type Description AssertFalse The annotated element must be false.AssertFalse.List Defines severalAssertFalseannotations on the same element.AssertTrue The annotated element must be true.AssertTrue.List Defines severalAssertTrueannotations on the same element.DecimalMax The annotated element must be a number whose value must be lower or equal to the specified maximum.DecimalMax.List Defines severalDecimalMaxannotations on the same element.DecimalMin The annotated element must be a number whose value must be higher or equal to the specified minimum.DecimalMin.List Defines severalDecimalMinannotations on the same element.Digits The annotated element must be a number within accepted range.Digits.List Defines severalDigitsannotations on the same element.Email The string has to be a well-formed email address.Email.List Defines several@Emailconstraints on the same element.Future The annotated element must be an instant, date or time in the future.Future.List Defines severalFutureannotations on the same element.FutureOrPresent The annotated element must be an instant, date or time in the present or in the future.FutureOrPresent.List Defines severalFutureOrPresentannotations on the same element.Max The annotated element must be a number whose value must be lower or equal to the specified maximum.Max.List Defines severalMaxannotations on the same element.Min The annotated element must be a number whose value must be higher or equal to the specified minimum.Min.List Defines severalMinannotations on the same element.Negative The annotated element must be a strictly negative number (i.e.Negative.List Defines severalNegativeconstraints on the same element.NegativeOrZero The annotated element must be a negative number or 0.NegativeOrZero.List Defines severalNegativeOrZeroconstraints on the same element.NotBlank The annotated element must not benulland must contain at least one non-whitespace character.NotBlank.List Defines several@NotBlankconstraints on the same element.NotEmpty The annotated element must not benullnor empty.NotEmpty.List Defines several@NotEmptyconstraints on the same element.NotNull The annotated element must not benull.NotNull.List Defines severalNotNullannotations on the same element.Null The annotated element must benull.Null.List Defines severalNullannotations on the same element.Past The annotated element must be an instant, date or time in the past.Past.List Defines severalPastannotations on the same element.PastOrPresent The annotated element must be an instant, date or time in the past or in the present.PastOrPresent.List Defines severalPastOrPresentannotations on the same element.Pattern The annotatedCharSequencemust match the specified regular expression.Pattern.List Defines severalPatternannotations on the same element.Positive The annotated element must be a strictly positive number (i.e.Positive.List Defines severalPositiveconstraints on the same element.PositiveOrZero The annotated element must be a positive number or 0.PositiveOrZero.List Defines severalPositiveOrZeroconstraints on the same element.Size The annotated element size must be between the specified boundaries (included).Size.List Defines severalSizeannotations on the same element.