Annotation Interface Future


The annotated element must be an instant, date or time in the future.

Now is defined by the

invalid reference
Clock
Supplier attached to the
invalid reference
Validator
. The default clock defines the current time according to the virtual machine, applying the current default time zone if needed.

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

null elements are considered valid.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
  • Element Details

    • message

      String message
      Default:
      "{avaje.Future.message}"
    • groups

      Class<?>[] groups
      Default:
      {}