Annotation Interface Validation.Calendar.Future

Enclosing class:
Validation.Calendar

@Target({METHOD,PARAMETER,ANNOTATION_TYPE,TYPE_USE,RECORD_COMPONENT}) @Constraint public static @interface Validation.Calendar.Future
The annotated element must be in the future.

The definition of future depends on annotated type - for example, for a Year, future is next year (even in January), but for Instant, future is already the next millisecond.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Message to return instead of the default one of the validator.
  • Element Details

    • message

      String message
      Message to return instead of the default one of the validator. The message can be a string format, where the first (and only) parameter will be the actual value that is being validated.
      Returns:
      message to describe the constraint validation error
      Default:
      ""