Returns a copy of this {@code YearMonth} with the year altered.
!(p)
This instance is immutable and unaffected by this method call.
@param year the year to set _in the returned year-month, from MIN_YEAR to MAX_YEAR
@return a {@code YearMonth} based on this year-month with the requested year, not null
@throws DateTimeException if the year value is invalid
Returns a copy of this {@code YearMonth} with the year altered. !(p) This instance is immutable and unaffected by this method call.
@param year the year to set _in the returned year-month, from MIN_YEAR to MAX_YEAR @return a {@code YearMonth} based on this year-month with the requested year, not null @throws DateTimeException if the year value is invalid