Class NotBlankValidator

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotBlank,​CharSequence>

    public class NotBlankValidator
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotBlank,​CharSequence>
    Validate NotBlank for CharSequence.
    • Constructor Detail

      • NotBlankValidator

        public NotBlankValidator()
    • Method Detail

      • isValid

        public boolean isValid​(CharSequence value,
                               jakarta.validation.ConstraintValidatorContext context)
        Specified by:
        isValid in interface jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotBlank,​CharSequence>