Class NotNullValidator

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​Object>

    public class NotNullValidator
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​Object>
    valid when object is NOT null
    • Constructor Detail

      • NotNullValidator

        public NotNullValidator()
    • Method Detail

      • isValid

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