Class MaxTimeDurationValidator
- java.lang.Object
-
- de.xima.fc.validation.constraintvalidators.MaxTimeDurationValidator
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<MaxTimeDuration,TimeDuration>
public final class MaxTimeDurationValidator extends Object implements javax.validation.ConstraintValidator<MaxTimeDuration,TimeDuration>
Validator implementation for theMaxTimeDuration
constraint.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description MaxTimeDurationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(MaxTimeDuration constraintAnnotation)
boolean
isValid(TimeDuration value, javax.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
initialize
public void initialize(MaxTimeDuration constraintAnnotation)
- Specified by:
initialize
in interfacejavax.validation.ConstraintValidator<MaxTimeDuration,TimeDuration>
-
isValid
public boolean isValid(TimeDuration value, javax.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interfacejavax.validation.ConstraintValidator<MaxTimeDuration,TimeDuration>
-
-