Class PastOrPresentValidatorForReadableInstant

java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<jakarta.validation.constraints.PastOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentEpochBasedValidator<org.joda.time.ReadableInstant>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForReadableInstant
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.PastOrPresent,org.joda.time.ReadableInstant>, HibernateConstraintValidator<jakarta.validation.constraints.PastOrPresent,org.joda.time.ReadableInstant>

public class PastOrPresentValidatorForReadableInstant extends AbstractPastOrPresentEpochBasedValidator<org.joda.time.ReadableInstant>
Check if Joda Time type who implements import org.joda.time.ReadableInstant is in the past.
Author:
Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Guillaume Smet
  • Constructor Details

    • PastOrPresentValidatorForReadableInstant

      public PastOrPresentValidatorForReadableInstant()
  • Method Details

    • getEpochMillis

      protected long getEpochMillis(org.joda.time.ReadableInstant value, Clock reference)
      Description copied from class: AbstractEpochBasedTimeValidator
      Returns the millisecond based instant measured from Epoch. In the case of partials requiring a time reference, we use the Clock provided by the ClockProvider.
      Specified by:
      getEpochMillis in class AbstractEpochBasedTimeValidator<jakarta.validation.constraints.PastOrPresent,org.joda.time.ReadableInstant>