public abstract class AbstractPastOrPresentInstantBasedValidator<T> extends AbstractInstantBasedTimeValidator<javax.validation.constraints.PastOrPresent,T>
@PastOrPresent
validators that use an Instant
to be compared to the time reference.referenceClock
Constructor and Description |
---|
AbstractPastOrPresentInstantBasedValidator() |
Modifier and Type | Method and Description |
---|---|
protected java.time.Duration |
getEffectiveTemporalValidationTolerance(java.time.Duration absoluteTemporalValidationTolerance)
Returns the temporal validation tolerance to apply.
|
protected boolean |
isValid(int result)
Returns whether the result of the comparison between the validated value and the time reference is considered
valid.
|
getInstant, initialize, isValid
public AbstractPastOrPresentInstantBasedValidator()
protected boolean isValid(int result)
AbstractInstantBasedTimeValidator
isValid
in class AbstractInstantBasedTimeValidator<javax.validation.constraints.PastOrPresent,T>
protected java.time.Duration getEffectiveTemporalValidationTolerance(java.time.Duration absoluteTemporalValidationTolerance)
AbstractInstantBasedTimeValidator
getEffectiveTemporalValidationTolerance
in class AbstractInstantBasedTimeValidator<javax.validation.constraints.PastOrPresent,T>
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved