@CompileStatic class NotEmptyWhenNullableConstraintForMapValidator extends Object implements jakarta.validation.ConstraintValidator<NotEmptyWhenNullableConstraint, Map>
Validates if Map
is empty.
Maps
are ignored (reported as valid).
This constraint validator is very similar to the standard bean validation's NotEmpty
, but this one skips null Maps
and does not report them as violations.
Constructor and description |
---|
NotEmptyWhenNullableConstraintForMapValidator() |