Class FutureOrPresentValidatorForOffsetDateTime
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator<FutureOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.AbstractFutureOrPresentJavaTimeValidator<OffsetDateTime>
org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForOffsetDateTime
- All Implemented Interfaces:
ConstraintValidator<FutureOrPresent,,OffsetDateTime> HibernateConstraintValidator<FutureOrPresent,OffsetDateTime>
public class FutureOrPresentValidatorForOffsetDateTime
extends AbstractFutureOrPresentJavaTimeValidator<OffsetDateTime>
Check that the
java.time.OffsetDateTime passed is in the future.- 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 OffsetDateTimegetReferenceValue(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.futureorpresent.AbstractFutureOrPresentJavaTimeValidator
getEffectiveTemporalValidationTolerance, isValidMethods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
initialize, isValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
FutureOrPresentValidatorForOffsetDateTime
public FutureOrPresentValidatorForOffsetDateTime()
-
-
Method Details
-
getReferenceValue
Description copied from class:AbstractJavaTimeValidatorReturns an object of the validated type corresponding to the current time reference as provided by theClockProvider.- Specified by:
getReferenceValuein classAbstractJavaTimeValidator<FutureOrPresent,OffsetDateTime>
-