Class FutureOrPresentValidatorForLocalDateTime
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator<FutureOrPresent,T>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.AbstractFutureOrPresentJavaTimeValidator<LocalDateTime>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForLocalDateTime
-
- All Implemented Interfaces:
ConstraintValidator<FutureOrPresent,LocalDateTime>,HibernateConstraintValidator<FutureOrPresent,LocalDateTime>
public class FutureOrPresentValidatorForLocalDateTime extends AbstractFutureOrPresentJavaTimeValidator<LocalDateTime>
Check that thejava.time.LocalDateTimepassed is in the future.- Author:
- Guillaume Smet
-
-
Field Summary
-
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
referenceClock
-
-
Constructor Summary
Constructors Constructor Description FutureOrPresentValidatorForLocalDateTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocalDateTimegetReferenceValue(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, 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
-
-
-
-
Method Detail
-
getReferenceValue
protected LocalDateTime getReferenceValue(Clock reference)
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,LocalDateTime>
-
-