Package io.avaje.validation.constraints
Annotation Interface Future
@Documented
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
public @interface Future
The annotated element must be an instant, date or time in the future.
Now is defined by the
attached to the
invalid @link
ClockProvider
or
invalid @link
Validator
. The default invalid @link
ValidatorFactoryclockProvider defines the current time according to the
virtual machine, applying the current default time zone if needed.
Supported types are:
java.util.Datejava.util.Calendarjava.time.Instantjava.time.LocalDatejava.time.LocalDateTimejava.time.LocalTimejava.time.MonthDayjava.time.OffsetDateTimejava.time.OffsetTimejava.time.Yearjava.time.YearMonthjava.time.ZonedDateTime
null elements are considered valid.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@Futureconstraints on the same element. -
Optional Element Summary
Optional Elements