Annotation Type YearRange


  • @Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE})
    @Retention(RUNTIME)
    @Documented
    @API(status=EXPERIMENTAL,
         since="1.4.0")
    public @interface YearRange
    Constrain the range of generated positive year parameters.

    Applies to LocalDateTime, Instant, LocalDate, Calendar, Date, Year and YearMonth parameters which are also annotated with @ForAll.

    See Also:
    ForAll, DateRange, DayOfMonthRange, DayOfWeekRange, MonthDayRange, MonthRange, YearMonthRange
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int max  
      int min  
    • Element Detail

      • min

        int min
        Default:
        1900
      • max

        int max
        Default:
        2500