Class ValidSubmissionTimestampValidator
- java.lang.Object
-
- app.coronawarn.server.common.persistence.domain.validation.ValidSubmissionTimestampValidator
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<ValidSubmissionTimestamp,Long>
public class ValidSubmissionTimestampValidator extends Object implements javax.validation.ConstraintValidator<ValidSubmissionTimestamp,Long>
-
-
Field Summary
Fields Modifier and Type Field Description static long
SECONDS_PER_HOUR
-
Constructor Summary
Constructors Constructor Description ValidSubmissionTimestampValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(Long submissionTimestamp, javax.validation.ConstraintValidatorContext constraintValidatorContext)
-
-
-
Method Detail
-
isValid
public boolean isValid(Long submissionTimestamp, javax.validation.ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid
in interfacejavax.validation.ConstraintValidator<ValidSubmissionTimestamp,Long>
-
-