Class PastOrPresentValidatorForReadablePartial
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<PastOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentEpochBasedValidator<org.joda.time.ReadablePartial>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForReadablePartial
- All Implemented Interfaces:
ConstraintValidator<PastOrPresent,
,org.joda.time.ReadablePartial> HibernateConstraintValidator<PastOrPresent,
org.joda.time.ReadablePartial>
public class PastOrPresentValidatorForReadablePartial
extends AbstractPastOrPresentEpochBasedValidator<org.joda.time.ReadablePartial>
Check if Joda Time type who implements
org.joda.time.ReadablePartial
is in the past.- 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 long
getEpochMillis
(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.pastorpresent.AbstractPastOrPresentEpochBasedValidator
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 javax.validation.ConstraintValidator
initialize
-
Constructor Details
-
PastOrPresentValidatorForReadablePartial
public PastOrPresentValidatorForReadablePartial()
-
-
Method Details
-
getEpochMillis
Description copied from class:AbstractEpochBasedTimeValidator
Returns the millisecond based instant measured from Epoch. In the case of partials requiring a time reference, we use theClock
provided by theClockProvider
.- Specified by:
getEpochMillis
in classAbstractEpochBasedTimeValidator<PastOrPresent,
org.joda.time.ReadablePartial>
-