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 TypesClassDescriptionThe annotated
Durationelement 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@DurationMaxannotations on the same element.The annotatedDurationelement 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@DurationMinannotations on the same element.