Top Description Fields Constructors Methods
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent

public abstract Class AbstractPastOrPresentJavaTimeValidator<T extends java.time.temporal.TemporalAccessor & java.lang.Comparable<? super T>>

extends AbstractJavaTimeValidator<PastOrPresent, T extends TemporalAccessor & Comparable<? super T>>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForHijrahDate, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForInstant, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForJapaneseDate, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForLocalDate, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForLocalDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForLocalTime, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForMinguoDate, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForMonthDay, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForOffsetDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForOffsetTime, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForThaiBuddhistDate, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForYear, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForYearMonth, org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForZonedDateTime
Imports
java.time.Duration, java.time.temporal.TemporalAccessor, jakarta.validation.constraints.PastOrPresent, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator

Base class for all @PastOrPresent validators that are based on the java.time package.
Authors
Alaa Nassef, Guillaume Smet

Field Summary

Inherited from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator:
referenceClock

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Duration
protected boolean
isValid(int result)

Implements abstract org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator.isValid.

Returns whether the result of the comparison between the validated value and the time reference is considered valid.
Inherited from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator:
getReferenceValueinitializeisValid

Constructor Detail

AbstractPastOrPresentJavaTimeValidatorback to summary
public AbstractPastOrPresentJavaTimeValidator()

Method Detail

getEffectiveTemporalValidationToleranceback to summary
protected Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)

Implements abstract org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator.getEffectiveTemporalValidationTolerance.

Doc from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator.getEffectiveTemporalValidationTolerance.

Returns the temporal validation tolerance to apply.

Annotations
@Override
isValidback to summary
protected boolean isValid(int result)

Implements abstract org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator.isValid.

Doc from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator.isValid.

Returns whether the result of the comparison between the validated value and the time reference is considered valid.

Annotations
@Override