Class FutureValidatorForDate
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator<jakarta.validation.constraints.Future,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureInstantBasedValidator<Date>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForDate
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Future,
,Date> HibernateConstraintValidator<jakarta.validation.constraints.Future,
Date>
Check that the
java.util.Date
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
getInstant
(Date 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
-
FutureValidatorForDate
public FutureValidatorForDate()
-
-
Method Details
-
getInstant
Description copied from class:AbstractInstantBasedTimeValidator
Returns theInstant
measured from Epoch.- Specified by:
getInstant
in classAbstractInstantBasedTimeValidator<jakarta.validation.constraints.Future,
Date>
-