MonthDay.of

Obtains an instance of {@code MonthDay}. !(p) The day-of-month must be valid for the month within a leap year. Hence, for month 2 (February), day 29 is valid. !(p) For example, passing _in month 4 (April) and day 31 will throw an exception, as there can never be April 31st _in any year. By contrast, passing _in February 29th is permitted, as that month-day can sometimes be valid.

@param month the month-of-year to represent, from 1 (January) to 12 (December) @param dayOfMonth the day-of-month to represent, from 1 to 31 @return the month-day, not null @throws DateTimeException if the value of any field is _out of range, or if the day-of-month is invalid for the month

  1. MonthDay of(Month month, int dayOfMonth)
  2. MonthDay of(int month, int dayOfMonth)
    class MonthDay
    static
    of
    (
    int month
    ,)

Meta