Class NotEmptyValidatorForMap

    • Constructor Detail

      • NotEmptyValidatorForMap

        public NotEmptyValidatorForMap()
    • Method Detail

      • isValid

        public boolean isValid​(Map map,
                               ConstraintValidatorContext constraintValidatorContext)
        Checks the map is not null and not empty.
        Specified by:
        isValid in interface ConstraintValidator<NotEmpty,​Map>
        Parameters:
        map - the map to validate
        constraintValidatorContext - context in which the constraint is evaluated
        Returns:
        returns true if the map is not null and the map is not empty