Home
last modified time | relevance | path

Searched refs:addTo (Results 1 – 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/
DDurationTest.java49 assertSame(Instant.EPOCH, Duration.ZERO.addTo(Instant.EPOCH)); in test_addTo()
54 Duration.between(Instant.EPOCH, Instant.MAX).addTo(Instant.EPOCH)); in test_addTo()
56 Duration.between(Instant.MIN, Instant.MAX).addTo(Instant.MIN)); in test_addTo()
58 Duration.between(Instant.MIN, Instant.EPOCH).addTo(Instant.MIN)); in test_addTo()
92 duration.addTo(temporal); in test_addTo_exceeds()
142 assertSame(temporal, Duration.ZERO.addTo(temporal)); in test_addTo_subtractFrom_unsupported()
146 second.addTo(temporal); in test_addTo_subtractFrom_unsupported()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java334 addTo(cal); in getTimeInMillis()
373 this.addTo(cal); in getTimeInMillis()
528 public abstract void addTo(Calendar calendar); in addTo() method in Duration
551 public void addTo(Date date) { in addTo() method in Duration
560 this.addTo(cal); in addTo()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAmount.java176 Temporal addTo(Temporal temporal); in addTo() method
DTemporal.java262 return amount.addTo(this); in plus()
DTemporalUnit.java227 <R extends Temporal> R addTo(R temporal, long amount); in addTo() method
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java302 Temporal addTo(Temporal temporal); in addTo() method
DChronoLocalDate.java462 return ChronoLocalDateImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); in plus()
DChronoPeriodImpl.java258 public Temporal addTo(Temporal temporal) { in addTo() method in ChronoPeriodImpl
DChronoZonedDateTimeImpl.java305 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), unit.addTo(this, amountToAdd)); /// … in plus()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java204 Temporal result = period.addTo(date); in test_addTo()
214 period.addTo(isoDate); in test_addTo_wrongChrono()
215 period.addTo(thaiDate); in test_addTo_wrongChrono()
DTCKChronoLocalDate.java351 public Temporal addTo(Temporal ignore) { in addTo() method in TCKChronoLocalDate.FixedAdjuster
409 public <R extends Temporal> R addTo(R temporal, long amount) { in addTo() method in TCKChronoLocalDate.FixedTemporalUnit
DTCKChronoLocalDateTime.java371 public Temporal addTo(Temporal ignore) { in addTo() method in TCKChronoLocalDateTime.FixedAdjuster
430 public <R extends Temporal> R addTo(R temporal, long amount) { in addTo() method in TCKChronoLocalDateTime.FixedTemporalUnit
DCopticDate.java273 return unit.addTo(this, amountToAdd); in plus()
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java141 public Temporal addTo(Temporal temporal) { in addTo() method in MockSimplePeriod
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java183 public Temporal addTo(Temporal temporal) { in factory_from_TemporalAmount_YearsDays()
206 public Temporal addTo(Temporal temporal) { in factory_from_TemporalAmount_Years_tooBig()
236 public Temporal addTo(Temporal temporal) { in factory_from_TemporalAmount_DaysHours()
662 public Temporal addTo(Temporal temporal) { in test_plus_TemporalAmount_DaysHours()
807 public Temporal addTo(Temporal temporal) { in test_minus_TemporalAmount_DaysHours()
1061 assertEquals(period.addTo(baseDate), expected); in test_addTo()
1071 Period.ZERO.addTo(null); in test_addTo_nullZero()
1076 Period.ofDays(2).addTo(null); in test_addTo_nullNonZero()
/libcore/ojluni/src/main/java/java/time/
DYear.java650 return (Year) amountToAdd.addTo(this); in plus()
713 return unit.addTo(this, amountToAdd); in plus()
DYearMonth.java744 return (YearMonth) amountToAdd.addTo(this); in plus()
811 return unit.addTo(this, amountToAdd); in plus()
DInstant.java782 return (Instant) amountToAdd.addTo(this); in plus()
858 return unit.addTo(this, amountToAdd); in plus()
DOffsetDateTime.java1153 return (OffsetDateTime) amountToAdd.addTo(this); in plus()
1186 return unit.addTo(this, amountToAdd); in plus()
DLocalTime.java1005 return (LocalTime) amountToAdd.addTo(this); in plus()
1074 return unit.addTo(this, amountToAdd); in plus()
DLocalDateTime.java1146 return (LocalDateTime) amountToAdd.addTo(this); in plus()
1190 return unit.addTo(this, amountToAdd); in plus()
DLocalDate.java1143 return (LocalDate) amountToAdd.addTo(this); in plus()
1243 return unit.addTo(this, amountToAdd); in plus()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java172 Temporal result = unit.addTo(base, amount); in test_unitAndTemporal()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java274 public java.time.temporal.Temporal addTo(java.time.temporal.Temporal temporal) { in addTo() method in Duration
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java257 LocalDate adjusted = IsoFields.WEEK_BASED_YEARS.addTo(date, j); in test_addTo_weekBasedYears()

12