public class NotEmptyValidatorForMap extends Object implements ConstraintValidator<NotEmpty,Map>
Constructor and Description |
---|
NotEmptyValidatorForMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Map map,
ConstraintValidatorContext constraintValidatorContext)
Checks the map is not
null and not empty. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public boolean isValid(Map map, ConstraintValidatorContext constraintValidatorContext)
null
and not empty.isValid
in interface ConstraintValidator<NotEmpty,Map>
map
- the map to validateconstraintValidatorContext
- context in which the constraint is evaluatedtrue
if the map is not null
and the map is not emptyCopyright © 2019 JBoss by Red Hat. All rights reserved.