Class PastOrPresentValidatorForMonthDay
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator<PastOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentJavaTimeValidator<MonthDay>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForMonthDay
- All Implemented Interfaces:
ConstraintValidator<PastOrPresent,,MonthDay> HibernateConstraintValidator<PastOrPresent,MonthDay>
public class PastOrPresentValidatorForMonthDay
extends AbstractPastOrPresentJavaTimeValidator<MonthDay>
Check that the
java.time.MonthDay passed is in the past.- Author:
- Guillaume Smet
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
referenceClock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MonthDaygetReferenceValue(Clock reference) Returns an object of the validated type corresponding to the current time reference as provided by theClockProvider.Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentJavaTimeValidator
getEffectiveTemporalValidationTolerance, isValidMethods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
initialize, isValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
PastOrPresentValidatorForMonthDay
public PastOrPresentValidatorForMonthDay()
-
-
Method Details
-
getReferenceValue
Description copied from class:AbstractJavaTimeValidatorReturns an object of the validated type corresponding to the current time reference as provided by theClockProvider.- Specified by:
getReferenceValuein classAbstractJavaTimeValidator<PastOrPresent,MonthDay>
-