public abstract class AbstractPastOrPresentEpochBasedValidator<T> extends AbstractEpochBasedTimeValidator<PastOrPresent,T>
@PastOrPresent
validators that use an epoch to be compared to the time reference.referenceClock
Constructor and Description |
---|
AbstractPastOrPresentEpochBasedValidator() |
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.
|
getEpochMillis, initialize, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public AbstractPastOrPresentEpochBasedValidator()
protected boolean isValid(int result)
AbstractEpochBasedTimeValidator
isValid
in class AbstractEpochBasedTimeValidator<PastOrPresent,T>
protected Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)
AbstractEpochBasedTimeValidator
getEffectiveTemporalValidationTolerance
in class AbstractEpochBasedTimeValidator<PastOrPresent,T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.