@CompileStatic class NotNullElementsConstraintForCollectionValidator extends Object implements jakarta.validation.ConstraintValidator<NotNullElementsConstraint, Collection>
Validates if Collection
contains null
elements.
null
or empty Collections
are ignored (reported as valid).
Constructor and description |
---|
NotNullElementsConstraintForCollectionValidator() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
isValid(Collection collection, jakarta.validation.ConstraintValidatorContext context) |