Package io.avaje.validation.constraints
Annotation Interface FutureOrPresent
@Documented
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
public @interface FutureOrPresent
The annotated element must be an instant, date or time in the present or in the future.
Now is defined by the
Supplier attached to the
invalid reference
Clock
. The
default clock defines the current time according to the virtual machine, applying the current
default time zone if needed.
invalid reference
Validator
The notion of present here is defined relatively to the type on which the constraint is used.
For instance, if the constraint is on a
, present would mean the whole current year.
invalid reference
Year
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.
-
Optional Element Summary
Optional Elements