Package org.hibernate.validator.constraints.time
package org.hibernate.validator.constraints.time
Hibernate Validator Duration
constraints.
This package is part of the public Hibernate Validator API.
-
Annotation InterfacesClassDescriptionThe annotated
Duration
element must be shorter than or equal to the one constructed as a sum ofDurationMax.nanos()
,DurationMax.millis()
,DurationMax.seconds()
,DurationMax.minutes()
,DurationMax.hours()
,DurationMax.days()
.Defines several@DurationMax
annotations on the same element.The annotatedDuration
element must be longer than or equal to the one constructed as a sum ofDurationMin.nanos()
,DurationMin.millis()
,DurationMin.seconds()
,DurationMin.minutes()
,DurationMin.hours()
,DurationMin.days()
.Defines several@DurationMin
annotations on the same element.