YearMonth.plusYears

Returns a copy of this {@code YearMonth} with the specified number of years added. !(p) This instance is immutable and unaffected by this method call.

@param yearsToAdd the years to add, may be negative @return a {@code YearMonth} based on this year-month with the years added, not null @throws DateTimeException if the result exceeds the supported range

class YearMonth
plusYears
()

Meta