Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java67 import java.time.temporal.TemporalAmount;
95 extends TemporalAmount {
209 ChronoPeriod plus(TemporalAmount amountToAdd); in plus()
224 ChronoPeriod minus(TemporalAmount amountToSubtract); in minus()
DChronoPeriodImpl.java75 import java.time.temporal.TemporalAmount;
176 public ChronoPeriod plus(TemporalAmount amountToAdd) { in plus()
186 public ChronoPeriod minus(TemporalAmount amountToSubtract) { in minus()
201 private ChronoPeriodImpl validateAmount(TemporalAmount amount) { in validateAmount()
DChronoLocalDate.java78 import java.time.temporal.TemporalAmount;
448 default ChronoLocalDate plus(TemporalAmount amount) { in plus()
471 default ChronoLocalDate minus(TemporalAmount amount) { in minus()
DChronoLocalDateTime.java81 import java.time.temporal.TemporalAmount;
283 default ChronoLocalDateTime<D> plus(TemporalAmount amount) { in plus()
301 default ChronoLocalDateTime<D> minus(TemporalAmount amount) { in minus()
DChronoLocalDateImpl.java70 import java.time.temporal.TemporalAmount;
191 public D plus(TemporalAmount amount) { in plus()
218 public D minus(TemporalAmount amount) { in minus()
DChronoZonedDateTime.java81 import java.time.temporal.TemporalAmount;
430 default ChronoZonedDateTime<D> plus(TemporalAmount amount) { in plus()
448 default ChronoZonedDateTime<D> minus(TemporalAmount amount) { in minus()
DMinguoDate.java79 import java.time.temporal.TemporalAmount;
350 public MinguoDate plus(TemporalAmount amount) { in plus()
360 public MinguoDate minus(TemporalAmount amount) { in minus()
DThaiBuddhistDate.java79 import java.time.temporal.TemporalAmount;
350 public ThaiBuddhistDate plus(TemporalAmount amount) { in plus()
360 public ThaiBuddhistDate minus(TemporalAmount amount) { in minus()
DHijrahDate.java81 import java.time.temporal.TemporalAmount;
458 public HijrahDate plus(TemporalAmount amount) { in plus()
468 public HijrahDate minus(TemporalAmount amount) { in minus()
DJapaneseDate.java82 import java.time.temporal.TemporalAmount;
559 public JapaneseDate plus(TemporalAmount amount) { in plus()
569 public JapaneseDate minus(TemporalAmount amount) { in minus()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporal.java261 default Temporal plus(TemporalAmount amount) { in plus()
333 default Temporal minus(TemporalAmount amount) { in minus()
DTemporalAmount.java99 public interface TemporalAmount { interface
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java68 import java.time.temporal.TemporalAmount;
77 implements TemporalAmount, Comparable<MockSimplePeriod> {
/libcore/ojluni/src/test/java/time/tck/java/time/
DMockSimplePeriod.java68 import java.time.temporal.TemporalAmount;
77 implements TemporalAmount, Comparable<MockSimplePeriod> {
DTCKPeriod.java75 import java.time.temporal.TemporalAmount;
160 TemporalAmount amount = Period.of(1, 2, 3); in factory_from_TemporalAmount_Period()
166 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_YearsDays()
196 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_Years_tooBig()
219 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_DaysHours()
645 TemporalAmount amount = new TemporalAmount() { in test_plus_TemporalAmount_DaysHours()
790 TemporalAmount amount = new TemporalAmount() { in test_minus_TemporalAmount_DaysHours()
DTCKLocalTime.java116 import java.time.temporal.TemporalAmount;
1394 TemporalAmount period = MockSimplePeriod.of(7, ChronoUnit.HOURS); in test_plus_TemporalAmount_positiveHours()
1401 TemporalAmount period = MockSimplePeriod.of(-25, ChronoUnit.MINUTES); in test_plus_TemporalAmount_negativeMinutes()
1408 TemporalAmount period = Period.ZERO; in test_plus_TemporalAmount_zero()
1415 TemporalAmount p = MockSimplePeriod.of(1, HOURS); in test_plus_TemporalAmount_wrap()
1422 TemporalAmount period = MockSimplePeriod.of(7, ChronoUnit.MONTHS); in test_plus_TemporalAmount_dateNotAllowed()
1428 TEST_12_30_40_987654321.plus((TemporalAmount) null); in test_plus_TemporalAmount_null()
1820 TemporalAmount period = MockSimplePeriod.of(7, ChronoUnit.HOURS);
1827 TemporalAmount period = MockSimplePeriod.of(-25, ChronoUnit.MINUTES);
1834 TemporalAmount period = Period.ZERO;
[all …]
/libcore/ojluni/src/main/java/java/time/
DPeriod.java82 import java.time.temporal.TemporalAmount;
254 public static Period from(TemporalAmount amount) { in from()
619 public Period plus(TemporalAmount amountToAdd) { in plus()
708 public Period minus(TemporalAmount amountToSubtract) { in minus()
DYear.java90 import java.time.temporal.TemporalAmount;
649 public Year plus(TemporalAmount amountToAdd) { in plus()
754 public Year minus(TemporalAmount amountToSubtract) { in minus()
DYearMonth.java93 import java.time.temporal.TemporalAmount;
743 public YearMonth plus(TemporalAmount amountToAdd) { in plus()
873 public YearMonth minus(TemporalAmount amountToSubtract) { in minus()
DOffsetTime.java85 import java.time.temporal.TemporalAmount;
842 public OffsetTime plus(TemporalAmount amountToAdd) { in plus()
962 public OffsetTime minus(TemporalAmount amountToSubtract) { in minus()
DInstant.java88 import java.time.temporal.TemporalAmount;
781 public Instant plus(TemporalAmount amountToAdd) { in plus()
948 public Instant minus(TemporalAmount amountToSubtract) { in minus()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDate.java82 import java.time.temporal.TemporalAmount;
143 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badPlusAdjusterChrono()
166 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badMinusAdjusterChrono()
338 static class FixedAdjuster implements TemporalAdjuster, TemporalAmount {
DTCKChronoLocalDateTime.java83 import java.time.temporal.TemporalAmount;
144 TemporalAmount adjuster = new FixedAdjuster(cdt2); in test_badPlusAdjusterChrono()
168 TemporalAmount adjuster = new FixedAdjuster(cdt2); in test_badMinusAdjusterChrono()
358 static class FixedAdjuster implements TemporalAdjuster, TemporalAmount {
DTCKChronoZonedDateTime.java84 import java.time.temporal.TemporalAmount;
145 TemporalAmount adjuster = new FixedAdjuster(czdt2); in test_badPlusAdjusterChrono()
169 TemporalAmount adjuster = new FixedAdjuster(czdt2); in test_badMinusAdjusterChrono()
359 static class FixedAdjuster implements TemporalAdjuster, TemporalAmount {
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java69 implements java.time.temporal.TemporalAmount,
109 public static java.time.Duration from(java.time.temporal.TemporalAmount amount) { in from()

12