Home
last modified time | relevance | path

Searched refs:yearsToAdd (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DYear.java725 public Year plusYears(long yearsToAdd) { in plusYears() argument
726 if (yearsToAdd == 0) { in plusYears()
729 return of(YEAR.checkValidIntValue(year + yearsToAdd)); // overflow safe in plusYears()
DPeriod.java640 public Period plusYears(long yearsToAdd) { in plusYears() argument
641 if (yearsToAdd == 0) { in plusYears()
644 return create(Math.toIntExact(Math.addExact(years, yearsToAdd)), months, days); in plusYears()
DYearMonth.java823 public YearMonth plusYears(long yearsToAdd) { in plusYears() argument
824 if (yearsToAdd == 0) { in plusYears()
827 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears()
DLocalDate.java1267 public LocalDate plusYears(long yearsToAdd) { in plusYears() argument
1268 if (yearsToAdd == 0) { in plusYears()
1271 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java243 abstract D plusYears(long yearsToAdd); in plusYears() argument