Searched refs:yearsToAdd (Results 1 – 5 of 5) sorted by relevance
725 public Year plusYears(long yearsToAdd) { in plusYears() argument726 if (yearsToAdd == 0) { in plusYears()729 return of(YEAR.checkValidIntValue(year + yearsToAdd)); // overflow safe in plusYears()
640 public Period plusYears(long yearsToAdd) { in plusYears() argument641 if (yearsToAdd == 0) { in plusYears()644 return create(Math.toIntExact(Math.addExact(years, yearsToAdd)), months, days); in plusYears()
823 public YearMonth plusYears(long yearsToAdd) { in plusYears() argument824 if (yearsToAdd == 0) { in plusYears()827 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears()
1267 public LocalDate plusYears(long yearsToAdd) { in plusYears() argument1268 if (yearsToAdd == 0) { in plusYears()1271 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears()
243 abstract D plusYears(long yearsToAdd); in plusYears() argument