Class FutureValidatorForReadableInstant

java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator<jakarta.validation.constraints.Future,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.AbstractFutureEpochBasedValidator<org.joda.time.ReadableInstant>
org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForReadableInstant
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Future,org.joda.time.ReadableInstant>, HibernateConstraintValidator<jakarta.validation.constraints.Future,org.joda.time.ReadableInstant>

public class FutureValidatorForReadableInstant extends AbstractFutureEpochBasedValidator<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

    • FutureValidatorForReadableInstant

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