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

public abstract Class AbstractPastEpochBasedValidator<T>

extends AbstractEpochBasedTimeValidator<Past, T>
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForReadableInstant, org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForReadablePartial
Imports
java.time.Duration, jakarta.validation.constraints.Past, org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator

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

Field Summary

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

Constructor Detail

AbstractPastEpochBasedValidatorback to summary
public AbstractPastEpochBasedValidator()

Method Detail

getEffectiveTemporalValidationToleranceback to summary
protected Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)

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

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

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

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

Annotations
@Override