public class FutureOrPresentValidatorForInstant extends AbstractFutureOrPresentJavaTimeValidator<java.time.Instant>
java.time.Instant
passed is in the future.referenceClock
Constructor and Description |
---|
FutureOrPresentValidatorForInstant() |
Modifier and Type | Method and Description |
---|---|
protected java.time.Instant |
getReferenceValue(java.time.Clock reference)
Returns an object of the validated type corresponding to the current time reference as provided by the
ClockProvider . |
getEffectiveTemporalValidationTolerance, isValid
initialize, isValid
protected java.time.Instant getReferenceValue(java.time.Clock reference)
AbstractJavaTimeValidator
ClockProvider
.getReferenceValue
in class AbstractJavaTimeValidator<javax.validation.constraints.FutureOrPresent,java.time.Instant>
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved