Class DateRangeValidator

  • All Implemented Interfaces:
    javax.validation.ConstraintValidator<DateRange,​Object>

    public class DateRangeValidator
    extends Object
    implements javax.validation.ConstraintValidator<DateRange,​Object>
    The validator of a date range constraint.
    • Constructor Detail

      • DateRangeValidator

        public DateRangeValidator()
    • Method Detail

      • initialize

        public void initialize​(DateRange constraintAnnotation)
        Specified by:
        initialize in interface javax.validation.ConstraintValidator<DateRange,​Object>
      • isValid

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