Package jakarta.validation.constraints
Annotation Type Future
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface Future
The annotated element must be an instant, date or time in the future.Now is defined by the
ClockProviderattached to theValidatororValidatorFactory. The defaultclockProviderdefines 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.ZonedDateTimejava.time.chrono.HijrahDatejava.time.chrono.JapaneseDatejava.time.chrono.MinguoDatejava.time.chrono.ThaiBuddhistDate
nullelements are considered valid.- Author:
- Emmanuel Bernard