Class FutureValidatorForReadablePartial
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<Future,T>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureEpochBasedValidator<org.joda.time.ReadablePartial>
-
- org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForReadablePartial
-
- All Implemented Interfaces:
ConstraintValidator<Future,org.joda.time.ReadablePartial>,HibernateConstraintValidator<Future,org.joda.time.ReadablePartial>
public class FutureValidatorForReadablePartial extends AbstractFutureEpochBasedValidator<org.joda.time.ReadablePartial>
Check if Joda Time type who implementsorg.joda.time.ReadablePartialis 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 Constructor Description FutureValidatorForReadablePartial()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetEpochMillis(org.joda.time.ReadablePartial value, Clock reference)Returns the millisecond based instant measured from Epoch.-
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureEpochBasedValidator
getEffectiveTemporalValidationTolerance, isValid
-
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator
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
-
getEpochMillis
protected long getEpochMillis(org.joda.time.ReadablePartial value, Clock reference)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<Future,org.joda.time.ReadablePartial>
-
-