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

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

extends AbstractJavaTimeValidator<Future, T extends TemporalAccessor & Comparable<? super T>>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForHijrahDate, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForInstant, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForJapaneseDate, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForLocalDate, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForLocalDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForLocalTime, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForMinguoDate, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForMonthDay, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForOffsetDateTime, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForOffsetTime, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForThaiBuddhistDate, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForYear, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForYearMonth, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForZonedDateTime
Imports
java.time.Duration, java.time.temporal.TemporalAccessor, jakarta.validation.constraints.Future, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator

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

AbstractFutureJavaTimeValidatorback to summary
public AbstractFutureJavaTimeValidator()

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