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
AssertFalseannotations on the same element.The annotated element must be true.Defines severalAssertTrueannotations on the same element.The annotated element must be a number whose value must be lower or equal to the specified maximum.Defines severalDecimalMaxannotations on the same element.The annotated element must be a number whose value must be higher or equal to the specified minimum.Defines severalDecimalMinannotations on the same element.The annotated element must be a number within accepted range Supported types are:BigDecimalBigIntegerCharSequencebyte,short,int,long, and their respective wrapper typesDefines severalDigitsannotations on the same element.The annotated element must be a date in the future.Defines severalFutureannotations on the same element.The annotated element must be a number whose value must be lower or equal to the specified maximum.Defines severalMaxannotations on the same element.The annotated element must be a number whose value must be higher or equal to the specified minimum.Defines severalMinannotations on the same element.The annotated element must not benull.Defines severalNotNullannotations on the same element.The annotated element must benull.Defines severalNullannotations on the same element.The annotated element must be a date in the past.Defines severalPastannotations on the same element.The annotatedCharSequencemust match the specified regular expression.Possible Regexp flags.Defines severalPatternannotations on the same element.The annotated element size must be between the specified boundaries (included).Defines severalSizeannotations on the same element.