Class FutureOrPresentValidatorForReadableInstant

java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<jakarta.validation.constraints.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:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.FutureOrPresent,org.joda.time.ReadableInstant>, HibernateConstraintValidator<jakarta.validation.constraints.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
  • Constructor Details

    • FutureOrPresentValidatorForReadableInstant

      public FutureOrPresentValidatorForReadableInstant()
  • 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.FutureOrPresent,org.joda.time.ReadableInstant>