| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Duration | getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance)
Returns the temporal validation tolerance to apply. |
| protected abstract long | |
| public void | initialize(ConstraintDescriptor<C>
a constraint descriptor for a given constraint declaration constraintDescriptor, HibernateConstraintValidatorInitializationContext an initialization context for a current initializationContext)ConstraintValidatorFactoryOverrides default org. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(T
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated context)Implements jakarta. |
| protected abstract boolean | isValid(int result)
Returns whether the result of the comparison between the validated value and the time reference is considered valid. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| referenceClock | back to summary |
|---|---|
| protected Clock referenceClock | |
| AbstractEpochBasedTimeValidator | back to summary |
|---|---|
| public AbstractEpochBasedTimeValidator() | |
| getEffectiveTemporalValidationTolerance | back to summary |
|---|---|
| protected abstract Duration getEffectiveTemporalValidationTolerance(Duration absoluteTemporalValidationTolerance) Returns the temporal validation tolerance to apply. | |
| getEpochMillis | back to summary |
|---|---|
| protected abstract long getEpochMillis(T value, Clock reference) Returns the millisecond based instant measured from Epoch. In the case of partials requiring a time reference, we
use the | |
| isValid | back to summary |
|---|---|
| public boolean isValid(T value, ConstraintValidatorContext context) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |
| isValid | back to summary |
|---|---|
| protected abstract boolean isValid(int result) Returns whether the result of the comparison between the validated value and the time reference is considered valid. | |