public class FutureOrPresentValidatorForYear extends AbstractFutureOrPresentJavaTimeValidator<java.time.Year>
java.time.Year
passed is in the future.referenceClock
Constructor and Description |
---|
FutureOrPresentValidatorForYear() |
Modifier and Type | Method and Description |
---|---|
protected java.time.Year |
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.Year getReferenceValue(java.time.Clock reference)
AbstractJavaTimeValidator
ClockProvider
.getReferenceValue
in class AbstractJavaTimeValidator<javax.validation.constraints.FutureOrPresent,java.time.Year>
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved