/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 198 public D plus(long amountToAdd, TemporalUnit unit) { in plus() argument 202 case DAYS: return plusDays(amountToAdd); in plus() 203 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7)); in plus() 204 case MONTHS: return plusMonths(amountToAdd); in plus() 205 case YEARS: return plusYears(amountToAdd); in plus() 206 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus() 207 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 208 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 209 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 213 return (D) ChronoLocalDate.super.plus(amountToAdd, unit); in plus()
|
D | ChronoLocalDateTimeImpl.java | 304 public ChronoLocalDateTimeImpl<D> plus(long amountToAdd, TemporalUnit unit) { in plus() argument 308 case NANOS: return plusNanos(amountToAdd); in plus() 309 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus() 310 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 311 case SECONDS: return plusSeconds(amountToAdd); in plus() 312 case MINUTES: return plusMinutes(amountToAdd); in plus() 313 case HOURS: return plusHours(amountToAdd); in plus() 314 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 316 return with(date.plus(amountToAdd, unit), time); in plus() 318 … return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), unit.addTo(this, amountToAdd)); in plus()
|
D | ThaiBuddhistDate.java | 386 public ThaiBuddhistDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 387 return super.plus(amountToAdd, unit); in plus() 391 public ThaiBuddhistDate minus(long amountToAdd, TemporalUnit unit) { in minus() argument 392 return super.minus(amountToAdd, unit); in minus()
|
D | MinguoDate.java | 386 public MinguoDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 387 return super.plus(amountToAdd, unit); in plus() 391 public MinguoDate minus(long amountToAdd, TemporalUnit unit) { in minus() argument 392 return super.minus(amountToAdd, unit); in minus()
|
D | ChronoPeriod.java | 209 ChronoPeriod plus(TemporalAmount amountToAdd); in plus() argument
|
D | ChronoZonedDateTimeImpl.java | 301 public ChronoZonedDateTime<D> plus(long amountToAdd, TemporalUnit unit) { in plus() argument 303 return with(dateTime.plus(amountToAdd, unit)); in plus() 305 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); /// … in plus()
|
D | JapaneseDate.java | 631 public JapaneseDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 632 return super.plus(amountToAdd, unit); in plus() 636 public JapaneseDate minus(long amountToAdd, TemporalUnit unit) { in minus() argument 637 return super.minus(amountToAdd, unit); in minus()
|
D | ChronoLocalDate.java | 458 default ChronoLocalDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 462 return ChronoLocalDateImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); in plus()
|
D | ChronoPeriodImpl.java | 176 public ChronoPeriod plus(TemporalAmount amountToAdd) { in plus() argument 177 ChronoPeriodImpl amount = validateAmount(amountToAdd); in plus()
|
D | HijrahDate.java | 551 public HijrahDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 552 return super.plus(amountToAdd, unit); in plus()
|
D | ChronoLocalDateTime.java | 293 ChronoLocalDateTime<D> plus(long amountToAdd, TemporalUnit unit); in plus() argument
|
D | ChronoZonedDateTime.java | 440 ChronoZonedDateTime<D> plus(long amountToAdd, TemporalUnit unit); in plus() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 259 public CopticDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 263 case DAYS: return plusDays(amountToAdd); in plus() 264 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7)); in plus() 265 case MONTHS: return plusMonths(amountToAdd); in plus() 266 case YEARS: return plusYears(amountToAdd); in plus() 267 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus() 268 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 269 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 273 return unit.addTo(this, amountToAdd); in plus()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 781 public Instant plus(TemporalAmount amountToAdd) { in plus() argument 782 return (Instant) amountToAdd.addTo(this); in plus() 844 public Instant plus(long amountToAdd, TemporalUnit unit) { in plus() argument 847 case NANOS: return plusNanos(amountToAdd); in plus() 848 case MICROS: return plus(amountToAdd / 1000_000, (amountToAdd % 1000_000) * 1000); in plus() 849 case MILLIS: return plusMillis(amountToAdd); in plus() 850 case SECONDS: return plusSeconds(amountToAdd); in plus() 851 … case MINUTES: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_MINUTE)); in plus() 852 case HOURS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_HOUR)); in plus() 853 … case HALF_DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY / 2)); in plus() [all …]
|
D | LocalDateTime.java | 1140 public LocalDateTime plus(TemporalAmount amountToAdd) { in plus() argument 1141 if (amountToAdd instanceof Period) { in plus() 1142 Period periodToAdd = (Period) amountToAdd; in plus() 1145 Objects.requireNonNull(amountToAdd, "amountToAdd"); in plus() 1146 return (LocalDateTime) amountToAdd.addTo(this); in plus() 1176 public LocalDateTime plus(long amountToAdd, TemporalUnit unit) { in plus() argument 1180 case NANOS: return plusNanos(amountToAdd); in plus() 1181 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus() 1182 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 1183 case SECONDS: return plusSeconds(amountToAdd); in plus() [all …]
|
D | Year.java | 649 public Year plus(TemporalAmount amountToAdd) { in plus() argument 650 return (Year) amountToAdd.addTo(this); in plus() 702 public Year plus(long amountToAdd, TemporalUnit unit) { in plus() argument 705 case YEARS: return plusYears(amountToAdd); in plus() 706 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus() 707 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 708 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 709 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 713 return unit.addTo(this, amountToAdd); in plus()
|
D | YearMonth.java | 743 public YearMonth plus(TemporalAmount amountToAdd) { in plus() argument 744 return (YearMonth) amountToAdd.addTo(this); in plus() 799 public YearMonth plus(long amountToAdd, TemporalUnit unit) { in plus() argument 802 case MONTHS: return plusMonths(amountToAdd); in plus() 803 case YEARS: return plusYears(amountToAdd); in plus() 804 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus() 805 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 806 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 807 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 811 return unit.addTo(this, amountToAdd); in plus()
|
D | LocalDate.java | 1137 public LocalDate plus(TemporalAmount amountToAdd) { in plus() argument 1138 if (amountToAdd instanceof Period) { in plus() 1139 Period periodToAdd = (Period) amountToAdd; in plus() 1142 Objects.requireNonNull(amountToAdd, "amountToAdd"); in plus() 1143 return (LocalDate) amountToAdd.addTo(this); in plus() 1228 public LocalDate plus(long amountToAdd, TemporalUnit unit) { in plus() argument 1232 case DAYS: return plusDays(amountToAdd); in plus() 1233 case WEEKS: return plusWeeks(amountToAdd); in plus() 1234 case MONTHS: return plusMonths(amountToAdd); in plus() 1235 case YEARS: return plusYears(amountToAdd); in plus() [all …]
|
D | Duration.java | 691 public Duration plus(long amountToAdd, TemporalUnit unit) { in plus() argument 694 return plus(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY), 0); in plus() 699 if (amountToAdd == 0) { in plus() 704 case NANOS: return plusNanos(amountToAdd); in plus() 705 …case MICROS: return plusSeconds((amountToAdd / (1000_000L * 1000)) * 1000).plusNanos((amountToAdd … in plus() 706 case MILLIS: return plusMillis(amountToAdd); in plus() 707 case SECONDS: return plusSeconds(amountToAdd); in plus() 709 return plusSeconds(Math.multiplyExact(unit.getDuration().seconds, amountToAdd)); in plus() 711 Duration duration = unit.getDuration().multipliedBy(amountToAdd); in plus()
|
D | LocalTime.java | 1004 public LocalTime plus(TemporalAmount amountToAdd) { in plus() argument 1005 return (LocalTime) amountToAdd.addTo(this); in plus() 1061 public LocalTime plus(long amountToAdd, TemporalUnit unit) { in plus() argument 1064 case NANOS: return plusNanos(amountToAdd); in plus() 1065 case MICROS: return plusNanos((amountToAdd % MICROS_PER_DAY) * 1000); in plus() 1066 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus() 1067 case SECONDS: return plusSeconds(amountToAdd); in plus() 1068 case MINUTES: return plusMinutes(amountToAdd); in plus() 1069 case HOURS: return plusHours(amountToAdd); in plus() 1070 case HALF_DAYS: return plusHours((amountToAdd % 2) * 12); in plus() [all …]
|
D | OffsetDateTime.java | 1152 public OffsetDateTime plus(TemporalAmount amountToAdd) { in plus() argument 1153 return (OffsetDateTime) amountToAdd.addTo(this); in plus() 1182 public OffsetDateTime plus(long amountToAdd, TemporalUnit unit) { in plus() argument 1184 return with(dateTime.plus(amountToAdd, unit), offset); in plus() 1186 return unit.addTo(this, amountToAdd); in plus()
|
D | Period.java | 619 public Period plus(TemporalAmount amountToAdd) { in plus() argument 620 Period isoAmount = Period.from(amountToAdd); in plus()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | Temporal.java | 297 Temporal plus(long amountToAdd, TemporalUnit unit); in plus() argument
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronoZonedDateTimeTest.java | 110 public ChronoZonedDateTime plus(long amountToAdd, TemporalUnit unit) { in plus() argument
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 273 public java.time.OffsetDateTime plus(java.time.temporal.TemporalAmount amountToAdd) { in plus() argument 277 public java.time.OffsetDateTime plus(long amountToAdd, java.time.temporal.TemporalUnit unit) { in plus() argument
|