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

public abstract Class AbstractPastInstantBasedValidator<T>

extends AbstractInstantBasedTimeValidator<Past, T>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForCalendar, org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForDate
Imports
java.time.Duration, .Instant, jakarta.validation.constraints.Past, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractInstantBasedTimeValidator

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

AbstractPastInstantBasedValidatorback to summary
public AbstractPastInstantBasedValidator()

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