Class FutureValidatorForCalendar
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator<Future,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureInstantBasedValidator<Calendar>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForCalendar
- All Implemented Interfaces:
ConstraintValidator<Future,
,Calendar> HibernateConstraintValidator<Future,
Calendar>
Check that the
java.util.Calendar
passed to be validated is in
the future.- Author:
- Alaa Nassef, Guillaume Smet
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator
referenceClock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
getInstant
(Calendar value) Returns theInstant
measured from Epoch.Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureInstantBasedValidator
getEffectiveTemporalValidationTolerance, isValid
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator
initialize, isValid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
FutureValidatorForCalendar
public FutureValidatorForCalendar()
-
-
Method Details
-
getInstant
Description copied from class:AbstractInstantBasedTimeValidator
Returns theInstant
measured from Epoch.- Specified by:
getInstant
in classAbstractInstantBasedTimeValidator<Future,
Calendar>
-