Class FutureOrPresentValidatorForReadableInstant
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<FutureOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.AbstractFutureOrPresentEpochBasedValidator<org.joda.time.ReadableInstant>
org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForReadableInstant
- All Implemented Interfaces:
ConstraintValidator<FutureOrPresent,,org.joda.time.ReadableInstant> HibernateConstraintValidator<FutureOrPresent,org.joda.time.ReadableInstant>
public class FutureOrPresentValidatorForReadableInstant
extends AbstractFutureOrPresentEpochBasedValidator<org.joda.time.ReadableInstant>
Check if Joda Time type who implements
import org.joda.time.ReadableInstant is in the future.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Guillaume Smet
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator
referenceClock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetEpochMillis(org.joda.time.ReadableInstant value, Clock reference) Returns the millisecond based instant measured from Epoch.Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.AbstractFutureOrPresentEpochBasedValidator
getEffectiveTemporalValidationTolerance, isValidMethods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator
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
-
FutureOrPresentValidatorForReadableInstant
public FutureOrPresentValidatorForReadableInstant()
-
-
Method Details
-
getEpochMillis
Description copied from class:AbstractEpochBasedTimeValidatorReturns the millisecond based instant measured from Epoch. In the case of partials requiring a time reference, we use theClockprovided by theClockProvider.- Specified by:
getEpochMillisin classAbstractEpochBasedTimeValidator<FutureOrPresent,org.joda.time.ReadableInstant>
-