/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDate.java | 120 TemporalAdjuster adjuster = new FixedAdjuster(date2); in test_badWithAdjusterChrono() local 123 date.with(adjuster); in test_badWithAdjusterChrono() 130 ChronoLocalDate result = date.with(adjuster); in test_badWithAdjusterChrono() 143 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badPlusAdjusterChrono() local 146 date.plus(adjuster); in test_badPlusAdjusterChrono() 153 ChronoLocalDate result = date.plus(adjuster); in test_badPlusAdjusterChrono() 166 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badMinusAdjusterChrono() local 169 date.minus(adjuster); in test_badMinusAdjusterChrono() 176 ChronoLocalDate result = date.minus(adjuster); in test_badMinusAdjusterChrono() 189 TemporalUnit adjuster = new FixedTemporalUnit(date2); in test_badPlusTemporalUnitChrono() local [all …]
|
D | TCKChronoLocalDateTime.java | 120 TemporalAdjuster adjuster = new FixedAdjuster(cdt2); in test_badWithAdjusterChrono() local 123 cdt.with(adjuster); in test_badWithAdjusterChrono() 131 ChronoLocalDateTime<?> result = cdt.with(adjuster); in test_badWithAdjusterChrono() 144 TemporalAmount adjuster = new FixedAdjuster(cdt2); in test_badPlusAdjusterChrono() local 147 cdt.plus(adjuster); in test_badPlusAdjusterChrono() 155 ChronoLocalDateTime<?> result = cdt.plus(adjuster); in test_badPlusAdjusterChrono() 168 TemporalAmount adjuster = new FixedAdjuster(cdt2); in test_badMinusAdjusterChrono() local 171 cdt.minus(adjuster); in test_badMinusAdjusterChrono() 179 ChronoLocalDateTime<?> result = cdt.minus(adjuster); in test_badMinusAdjusterChrono() 192 TemporalUnit adjuster = new FixedTemporalUnit(cdt2); in test_badPlusTemporalUnitChrono() local [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | Temporal.java | 189 default Temporal with(TemporalAdjuster adjuster) { in with() argument 190 return adjuster.adjustInto(this); in with()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 902 public OffsetDateTime with(TemporalAdjuster adjuster) { in with() argument 904 …if (adjuster instanceof LocalDate || adjuster instanceof LocalTime || adjuster instanceof LocalDat… in with() 905 return with(dateTime.with(adjuster), offset); in with() 906 } else if (adjuster instanceof Instant) { in with() 907 return ofInstant((Instant) adjuster, offset); in with() 908 } else if (adjuster instanceof ZoneOffset) { in with() 909 return with(dateTime, (ZoneOffset) adjuster); in with() 910 } else if (adjuster instanceof OffsetDateTime) { in with() 911 return (OffsetDateTime) adjuster; in with() 913 return (OffsetDateTime) adjuster.adjustInto(this); in with()
|
D | LocalDateTime.java | 911 public LocalDateTime with(TemporalAdjuster adjuster) { in with() argument 913 if (adjuster instanceof LocalDate) { in with() 914 return with((LocalDate) adjuster, time); in with() 915 } else if (adjuster instanceof LocalTime) { in with() 916 return with(date, (LocalTime) adjuster); in with() 917 } else if (adjuster instanceof LocalDateTime) { in with() 918 return (LocalDateTime) adjuster; in with() 920 return (LocalDateTime) adjuster.adjustInto(this); in with()
|
D | LocalTime.java | 759 public LocalTime with(TemporalAdjuster adjuster) { in with() argument 761 if (adjuster instanceof LocalTime) { in with() 762 return (LocalTime) adjuster; in with() 764 return (LocalTime) adjuster.adjustInto(this); in with()
|
D | LocalDate.java | 901 public LocalDate with(TemporalAdjuster adjuster) { in with() argument 903 if (adjuster instanceof LocalDate) { in with() 904 return (LocalDate) adjuster; in with() 906 return (LocalDate) adjuster.adjustInto(this); in with()
|
D | Year.java | 567 public Year with(TemporalAdjuster adjuster) { in with() argument 568 return (Year) adjuster.adjustInto(this); in with()
|
D | YearMonth.java | 623 public YearMonth with(TemporalAdjuster adjuster) { in with() argument 624 return (YearMonth) adjuster.adjustInto(this); in with()
|
D | Instant.java | 649 public Instant with(TemporalAdjuster adjuster) { in with() argument 650 return (Instant) adjuster.adjustInto(this); in with()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 277 public ChronoLocalDateTimeImpl<D> with(TemporalAdjuster adjuster) { in with() argument 278 if (adjuster instanceof ChronoLocalDate) { in with() 280 return with((ChronoLocalDate) adjuster, time); in with() 281 } else if (adjuster instanceof LocalTime) { in with() 282 return with(date, (LocalTime) adjuster); in with() 283 } else if (adjuster instanceof ChronoLocalDateTimeImpl) { in with() 284 …n ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster); in with() 286 …TimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster.adjustInto(this)); in with()
|
D | ChronoLocalDate.java | 424 default ChronoLocalDate with(TemporalAdjuster adjuster) { in with() argument 425 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
|
D | ChronoLocalDateTime.java | 265 default ChronoLocalDateTime<D> with(TemporalAdjuster adjuster) { in with() argument 266 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
|
D | ChronoLocalDateImpl.java | 178 public D with(TemporalAdjuster adjuster) { in with() argument 179 return (D) ChronoLocalDate.super.with(adjuster); in with()
|
D | ChronoZonedDateTime.java | 412 default ChronoZonedDateTime<D> with(TemporalAdjuster adjuster) { in with() argument 413 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
|
D | ThaiBuddhistDate.java | 340 public ThaiBuddhistDate with(TemporalAdjuster adjuster) { in with() argument 341 return super.with(adjuster); in with()
|
D | MinguoDate.java | 340 public MinguoDate with(TemporalAdjuster adjuster) { in with() argument 341 return super.with(adjuster); in with()
|
D | HijrahDate.java | 429 public HijrahDate with(TemporalAdjuster adjuster) { in with() argument 430 return super.with(adjuster); in with()
|
D | JapaneseDate.java | 549 public JapaneseDate with(TemporalAdjuster adjuster) { in with() argument 550 return super.with(adjuster); in with()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 229 public java.time.OffsetDateTime with(java.time.temporal.TemporalAdjuster adjuster) { in with() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKInstant.java | 493 …public void test_with_temporalAdjuster(Instant test, TemporalAdjuster adjuster, Instant expected, … 495 Instant result = test.with(adjuster); 499 Instant result = test.with(adjuster);
|
D | TCKOffsetTime.java | 731 TemporalAdjuster adjuster = new TemporalAdjuster() { 737 assertEquals(TEST_11_30_59_500_PONE.with(adjuster), sample);
|
D | TCKOffsetDateTime.java | 714 TemporalAdjuster adjuster = new TemporalAdjuster() { 720 assertEquals(TEST_2008_6_30_11_30_59_000000500.with(adjuster), sample);
|
D | TCKLocalDate.java | 843 TemporalAdjuster adjuster = new TemporalAdjuster() { 849 assertEquals(TEST_2007_07_15.with(adjuster), sample);
|
D | TCKLocalTime.java | 805 TemporalAdjuster adjuster = new TemporalAdjuster() { in test_with_adjustment() local 811 assertEquals(TEST_12_30_40_987654321.with(adjuster), sample); in test_with_adjustment()
|