| Modifier and Type | Class and Description |
|---|---|
| public static interface | ConstraintDefinitionContext.ConstraintValidatorDefinitionContext<A extends Annotation, T>
Allows to specify a validation implementation for the given constraint and data type using a Lambda expression or method reference. |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintDefinitionContext | Returns: This context for method chaining.Whether or not to use already-mapped validators when validating this constraint. includeExistingValidators)Specifies whether validators already mapped to this constraint (i.e. defined in the annotation declaration
through |
| public ConstraintDefinitionContext | Returns: This context for method chaining.The validator to add. validator)Adds a new validator to validate this constraint. |
| public <T> ConstraintDefinitionContext. | Returns: This context for method chainingThe type of the value to validate type)Allows to configure a validation implementation using a Lambda expression or method reference. |
| includeExistingValidators | back to summary |
|---|---|
| public ConstraintDefinitionContext Specifies whether validators already mapped to this constraint (i.e. defined in the annotation declaration
through
| |
| validatedBy | back to summary |
|---|---|
| public ConstraintDefinitionContext Adds a new validator to validate this constraint.
| |
| validateType | back to summary |
|---|---|
| public <T> ConstraintDefinitionContext. Allows to configure a validation implementation using a Lambda expression or method reference. Useful for simple validations without the need for accessing constraint properties or customization of error messages etc.
| |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintDefinitionContext | with(ConstraintDefinitionContext.
Applies the given Lambda expression or referenced method to values to be validated. |
| with | back to summary |
|---|---|
| public ConstraintDefinitionContext Applies the given Lambda expression or referenced method to values to be validated. It is guaranteed that
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| isValid | back to summary |
|---|---|
| public boolean isValid(T object) | |