Class NotEmptyValidatorForCollection

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotEmpty,​Collection<?>>

    public class NotEmptyValidatorForCollection
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotEmpty,​Collection<?>>
    Description:
    • Constructor Detail

      • NotEmptyValidatorForCollection

        public NotEmptyValidatorForCollection()
    • Method Detail

      • isValid

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