Class NullValidator

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

    public class NullValidator
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Null,​Object>
    Description: valid when object is null
    • Constructor Detail

      • NullValidator

        public NullValidator()
    • Method Detail

      • isValid

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