Package javax. validation. constraints
See: Description
-
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 severalAssertFalse
annotations on the same element.AssertTrue The annotated element must be true.AssertTrue.List Defines severalAssertTrue
annotations 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 severalDecimalMax
annotations 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 severalDecimalMin
annotations on the same element.Digits The annotated element must be a number within accepted range Supported types are:BigDecimal
BigInteger
CharSequence
byte
,short
,int
,long
, and their respective wrapper typesnull
elements are considered valid.Digits.List Defines severalDigits
annotations on the same element.Future The annotated element must be a date in the future.Future.List Defines severalFuture
annotations 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 severalMax
annotations 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 severalMin
annotations on the same element.NotNull The annotated element must not benull
.NotNull.List Defines severalNotNull
annotations on the same element.Null The annotated element must benull
.Null.List Defines severalNull
annotations on the same element.Past The annotated element must be a date in the past.Past.List Defines severalPast
annotations on the same element.Pattern The annotatedCharSequence
must match the specified regular expression.Pattern.List Defines severalPattern
annotations on the same element.Size The annotated element size must be between the specified boundaries (included).Size.List Defines severalSize
annotations on the same element.
Package javax.validation.constraints Description
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/validation/constraints/package-summary.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.