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

public abstract Class AbstractFutureInstantBasedValidator<T>

extends AbstractInstantBasedTimeValidator<Future, T>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForCalendar, org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForDate
Imports
java.time.Duration, .Instant, jakarta.validation.constraints.Future, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator

Base class for all @Future validators that use an Instant to be compared to the time reference.
Authors
Alaa Nassef, Guillaume Smet

Field Summary

Inherited from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator:
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.AbstractInstantBasedTimeValidator.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.AbstractInstantBasedTimeValidator:
getInstantinitializeisValid

Constructor Detail

AbstractFutureInstantBasedValidatorback to summary
public AbstractFutureInstantBasedValidator()

Method Detail

getEffectiveTemporalValidationToleranceback to summary
protected Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)

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

Doc from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator.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.AbstractInstantBasedTimeValidator.isValid.

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

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

Annotations
@Override