Class PastValidatorForInstant
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator<jakarta.validation.constraints.Past,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.past.AbstractPastJavaTimeValidator<Instant>
org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForInstant
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Past,
,Instant> HibernateConstraintValidator<jakarta.validation.constraints.Past,
Instant>
Check that the
java.time.Instant
passed is in the past.- Author:
- Khalid Alqinyah, Guillaume Smet
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
referenceClock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
getReferenceValue
(Clock reference) Returns an object of the validated type corresponding to the current time reference as provided by theClockProvider
.Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.past.AbstractPastJavaTimeValidator
getEffectiveTemporalValidationTolerance, isValid
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
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
-
PastValidatorForInstant
public PastValidatorForInstant()
-
-
Method Details
-
getReferenceValue
Description copied from class:AbstractJavaTimeValidator
Returns an object of the validated type corresponding to the current time reference as provided by theClockProvider
.- Specified by:
getReferenceValue
in classAbstractJavaTimeValidator<jakarta.validation.constraints.Past,
Instant>
-