@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=Past.List.class) @Documented @Constraint(validatedBy={}) public @interface Past
By default, "now" is defined as the current time according to the virtual machine, applying the current default time
zone if needed. If required, an alternative ClockProvider
can be specified when bootstrapping a validator
factory or validator, allowing to customize the Clock
representing the current instant, date and time.
Supported types are:
java.util.Date
java.util.Calendar
java.time.Instant
java.time.LocalDate
java.time.LocalDateTime
java.time.LocalTime
java.time.MonthDay
java.time.OffsetDateTime
java.time.OffsetTime
java.time.Year
java.time.YearMonth
java.time.ZonedDateTime
java.time.chrono.HijrahDate
java.time.chrono.JapaneseDate
java.time.chrono.MinguoDate
java.time.chrono.ThaiBuddhistDate
null
elements are considered valid.
public abstract String message
public abstract Class<?>[] groups
public abstract boolean orPresent
Year
, present would mean the whole current year.true
if the present date should be considered validCopyright © 2007-2017 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0.