Package javax.validation.constraints
package javax.validation.constraints
Contains all the 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.
-
ClassDescriptionThe annotated element must be false.Defines several
AssertFalse
annotations on the same element.The annotated element must be true.Defines severalAssertTrue
annotations on the same element.The annotated element must be a number whose value must be lower or equal to the specified maximum.Defines severalDecimalMax
annotations on the same element.The annotated element must be a number whose value must be higher or equal to the specified minimum.Defines severalDecimalMin
annotations on the same element.The annotated element must be a number within accepted range Supported types are:BigDecimal
BigInteger
CharSequence
byte
,short
,int
,long
, and their respective wrapper typesDefines severalDigits
annotations on the same element.The annotated element must be a date in the future.Defines severalFuture
annotations on the same element.The annotated element must be a number whose value must be lower or equal to the specified maximum.Defines severalMax
annotations on the same element.The annotated element must be a number whose value must be higher or equal to the specified minimum.Defines severalMin
annotations on the same element.The annotated element must not benull
.Defines severalNotNull
annotations on the same element.The annotated element must benull
.Defines severalNull
annotations on the same element.The annotated element must be a date in the past.Defines severalPast
annotations on the same element.The annotatedCharSequence
must match the specified regular expression.Possible Regexp flags.Defines severalPattern
annotations on the same element.The annotated element size must be between the specified boundaries (included).Defines severalSize
annotations on the same element.