Class PastOrPresentValidatorForDate
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator<PastOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentInstantBasedValidator<Date>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForDate
- All Implemented Interfaces:
ConstraintValidator<PastOrPresent,
,Date> HibernateConstraintValidator<PastOrPresent,
Date>
Check that the
java.util.Date
passed to be validated is in the
past.- 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.pastorpresent.AbstractPastOrPresentInstantBasedValidator
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
-
PastOrPresentValidatorForDate
public PastOrPresentValidatorForDate()
-
-
Method Details
-
getInstant
Description copied from class:AbstractInstantBasedTimeValidator
Returns theInstant
measured from Epoch.- Specified by:
getInstant
in classAbstractInstantBasedTimeValidator<PastOrPresent,
Date>
-