Class NotEmptyValidatorForMap
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.notempty.NotEmptyValidatorForMap
-
- All Implemented Interfaces:
ConstraintValidator<NotEmpty,Map>
public class NotEmptyValidatorForMap extends Object implements ConstraintValidator<NotEmpty,Map>
Check that the map is not null and not empty.- Author:
- Guillaume Smet
-
-
Constructor Summary
Constructors Constructor Description NotEmptyValidatorForMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(Map map, ConstraintValidatorContext constraintValidatorContext)Checks the map is notnulland not empty.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
-
-
-
Method Detail
-
isValid
public boolean isValid(Map map, ConstraintValidatorContext constraintValidatorContext)
Checks the map is notnulland not empty.- Specified by:
isValidin interfaceConstraintValidator<NotEmpty,Map>- Parameters:
map- the map to validateconstraintValidatorContext- context in which the constraint is evaluated- Returns:
- returns
trueif the map is notnulland the map is not empty
-
-