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 February, day 29 is valid. !(p) For example, passing _in 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, not null @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)
    class MonthDay
  2. MonthDay of(int month, int dayOfMonth)

Meta