Searched refs:monthsToAdd (Results 1 - 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java656 * @param monthsToAdd the months to add, positive or negative
660 public Period plusMonths(long monthsToAdd) { argument
661 if (monthsToAdd == 0) {
664 return create(years, Math.toIntExact(Math.addExact(months, monthsToAdd)), days);
H A DYearMonth.java836 * @param monthsToAdd the months to add, may be negative
840 public YearMonth plusMonths(long monthsToAdd) { argument
841 if (monthsToAdd == 0) {
845 long calcMonths = monthCount + monthsToAdd; // safe overflow
H A DLocalDate.java1291 * @param monthsToAdd the months to add, may be negative
1295 public LocalDate plusMonths(long monthsToAdd) { argument
1296 if (monthsToAdd == 0) {
1300 long calcMonths = monthCount + monthsToAdd; // safe overflow
/libcore/ojluni/src/main/java/java/time/chrono/
H A DHijrahDate.java529 HijrahDate plusMonths(long monthsToAdd) { argument
530 if (monthsToAdd == 0) {
534 long calcMonths = monthCount + monthsToAdd; // safe overflow
H A DChronoLocalDateImpl.java255 * @param monthsToAdd the months to add, may be negative
259 abstract D plusMonths(long monthsToAdd); argument

Completed in 118 milliseconds