Class MinValidatorForNumber

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Min,​Number>

    public class MinValidatorForNumber
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Min,​Number>
    Description: validate that number-value of passed object is >= min-value
    • Constructor Detail

      • MinValidatorForNumber

        public MinValidatorForNumber()
    • Method Detail

      • initialize

        public void initialize​(jakarta.validation.constraints.Min annotation)
        Specified by:
        initialize in interface jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Min,​Number>
      • isValid

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