Class PastOrPresentValidatorForOffsetTime
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator<PastOrPresent,T>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentJavaTimeValidator<OffsetTime>
org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForOffsetTime
- All Implemented Interfaces:
ConstraintValidator<PastOrPresent,
,OffsetTime> HibernateConstraintValidator<PastOrPresent,
OffsetTime>
public class PastOrPresentValidatorForOffsetTime
extends AbstractPastOrPresentJavaTimeValidator<OffsetTime>
Check that the
java.time.OffsetTime
passed is in the past.- Author:
- Guillaume Smet
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
referenceClock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OffsetTime
getReferenceValue
(Clock reference) Returns an object of the validated type corresponding to the current time reference as provided by theClockProvider
.Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.AbstractPastOrPresentJavaTimeValidator
getEffectiveTemporalValidationTolerance, isValid
Methods inherited from class org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractJavaTimeValidator
initialize, isValid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.validation.ConstraintValidator
initialize
-
Constructor Details
-
PastOrPresentValidatorForOffsetTime
public PastOrPresentValidatorForOffsetTime()
-
-
Method Details
-
getReferenceValue
Description copied from class:AbstractJavaTimeValidator
Returns an object of the validated type corresponding to the current time reference as provided by theClockProvider
.- Specified by:
getReferenceValue
in classAbstractJavaTimeValidator<PastOrPresent,
OffsetTime>
-