Class FutureValidatorForDate
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator<Future,T>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureInstantBasedValidator<Date>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForDate
-
- All Implemented Interfaces:
ConstraintValidator<Future,Date>,HibernateConstraintValidator<Future,Date>
public class FutureValidatorForDate extends AbstractFutureInstantBasedValidator<Date>
Check that thejava.util.Datepassed 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 Constructor Description FutureValidatorForDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InstantgetInstant(Date value)Returns theInstantmeasured 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
-
-
-
-
Method Detail
-
getInstant
protected Instant getInstant(Date value)
Description copied from class:AbstractInstantBasedTimeValidatorReturns theInstantmeasured from Epoch.- Specified by:
getInstantin classAbstractInstantBasedTimeValidator<Future,Date>
-
-