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

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

extends AbstractJavaTimeValidator<FutureOrPresent, T extends TemporalAccessor & Comparable<? super T>>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForHijrahDate, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForInstant, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForJapaneseDate, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForLocalDate, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForLocalDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForLocalTime, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForMinguoDate, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForMonthDay, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForOffsetDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForOffsetTime, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForThaiBuddhistDate, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForYear, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForYearMonth, org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForZonedDateTime
Imports
java.time.Duration, java.time.temporal.TemporalAccessor, jakarta.validation.constraints.FutureOrPresent, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator

Base class for all @FutureOrPresent 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

AbstractFutureOrPresentJavaTimeValidatorback to summary
public AbstractFutureOrPresentJavaTimeValidator()

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