Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/time/
DDurationTest.java63 assertSame(Instant.EPOCH, Duration.ZERO.subtractFrom(Instant.EPOCH)); in test_subtractFrom()
65 Duration.between(Instant.MIN, Instant.EPOCH).subtractFrom(Instant.EPOCH)); in test_subtractFrom()
67 Duration.between(Instant.MIN, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom()
69 Duration.between(Instant.EPOCH, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom()
120 duration.subtractFrom(temporal); in test_subtractFrom_exceeds()
143 assertSame(temporal, Duration.ZERO.subtractFrom(temporal)); in test_addTo_subtractFrom_unsupported()
151 second.subtractFrom(temporal); in test_addTo_subtractFrom_unsupported()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAmount.java218 Temporal subtractFrom(Temporal temporal); in subtractFrom() method
DTemporal.java334 return amount.subtractFrom(this); in minus()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java222 Temporal result = period.subtractFrom(date); in test_subtractFrom()
232 period.subtractFrom(isoDate); in test_subtractFrom_wrongChrono()
233 period.subtractFrom(thaiDate); in test_subtractFrom_wrongChrono()
DTCKChronoLocalDate.java356 public Temporal subtractFrom(Temporal ignore) { in subtractFrom() method in TCKChronoLocalDate.FixedAdjuster
DTCKChronoLocalDateTime.java376 public Temporal subtractFrom(Temporal ignore) { in subtractFrom() method in TCKChronoLocalDateTime.FixedAdjuster
DTCKChronoZonedDateTime.java377 public Temporal subtractFrom(Temporal ignore) { in subtractFrom() method in TCKChronoZonedDateTime.FixedAdjuster
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java329 Temporal subtractFrom(Temporal temporal); in subtractFrom() method
DChronoPeriodImpl.java284 public Temporal subtractFrom(Temporal temporal) { in subtractFrom() method in ChronoPeriodImpl
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java187 public Temporal subtractFrom(Temporal temporal) { in factory_from_TemporalAmount_YearsDays()
210 public Temporal subtractFrom(Temporal temporal) { in factory_from_TemporalAmount_Years_tooBig()
240 public Temporal subtractFrom(Temporal temporal) { in factory_from_TemporalAmount_DaysHours()
666 public Temporal subtractFrom(Temporal temporal) { in test_plus_TemporalAmount_DaysHours()
811 public Temporal subtractFrom(Temporal temporal) { in test_minus_TemporalAmount_DaysHours()
1114 assertEquals(period.subtractFrom(baseDate), expected); in test_subtractFrom()
1124 Period.ZERO.subtractFrom(null); in test_subtractFrom_nullZero()
1129 Period.ofDays(2).subtractFrom(null); in test_subtractFrom_nullNonZero()
DMockSimplePeriod.java146 public Temporal subtractFrom(Temporal temporal) { in subtractFrom() method in MockSimplePeriod
DTCKDuration.java460 public Temporal subtractFrom(Temporal temporal) { in factory_from_TemporalAmount_DaysNanos()
485 public Temporal subtractFrom(Temporal temporal) { in factory_from_TemporalAmount_Minutes_tooBig()
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java146 public Temporal subtractFrom(Temporal temporal) { in subtractFrom() method in MockSimplePeriod
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java278 public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal temporal) { in subtractFrom() method in Duration
/libcore/ojluni/src/main/java/java/time/
DYear.java755 return (Year) amountToSubtract.subtractFrom(this); in minus()
DPeriod.java940 public Temporal subtractFrom(Temporal temporal) { in subtractFrom() method in Period
DYearMonth.java874 return (YearMonth) amountToSubtract.subtractFrom(this); in minus()
DOffsetTime.java963 return (OffsetTime) amountToSubtract.subtractFrom(this); in minus()
DInstant.java949 return (Instant) amountToSubtract.subtractFrom(this); in minus()
DDuration.java1097 public Temporal subtractFrom(Temporal temporal) { in subtractFrom() method in Duration
DOffsetDateTime.java1351 return (OffsetDateTime) amountToSubtract.subtractFrom(this); in minus()
DLocalTime.java1176 return (LocalTime) amountToSubtract.subtractFrom(this); in minus()
DZonedDateTime.java1804 return (ZonedDateTime) amountToSubtract.subtractFrom(this); in minus()
DLocalDateTime.java1365 return (LocalDateTime) amountToSubtract.subtractFrom(this); in minus()
DLocalDate.java1376 return (LocalDate) amountToSubtract.subtractFrom(this); in minus()