public abstract class AbstractPastOrPresentInstantBasedValidator<T> extends AbstractInstantBasedTimeValidator<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 Duration |
getEffectiveTemporalValidationTolerance(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, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic AbstractPastOrPresentInstantBasedValidator()
protected boolean isValid(int result)
AbstractInstantBasedTimeValidatorisValid in class AbstractInstantBasedTimeValidator<PastOrPresent,T>protected Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)
AbstractInstantBasedTimeValidatorgetEffectiveTemporalValidationTolerance in class AbstractInstantBasedTimeValidator<PastOrPresent,T>Copyright © 2019 JBoss by Red Hat. All rights reserved.