/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 …]
|
D | TCKChronoZonedDateTime.java | 122 TemporalAdjuster adjuster = new FixedAdjuster(czdt2); in test_badWithAdjusterChrono() local 125 czdt.with(adjuster); in test_badWithAdjusterChrono() 132 ChronoZonedDateTime<?> result = czdt.with(adjuster); in test_badWithAdjusterChrono() 145 TemporalAmount adjuster = new FixedAdjuster(czdt2); in test_badPlusAdjusterChrono() local 148 czdt.plus(adjuster); in test_badPlusAdjusterChrono() 156 ChronoZonedDateTime<?> result = czdt.plus(adjuster); in test_badPlusAdjusterChrono() 169 TemporalAmount adjuster = new FixedAdjuster(czdt2); in test_badMinusAdjusterChrono() local 172 czdt.minus(adjuster); in test_badMinusAdjusterChrono() 180 ChronoZonedDateTime<?> result = czdt.minus(adjuster); in test_badMinusAdjusterChrono() 193 TemporalUnit adjuster = new FixedTemporalUnit(czdt2); 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 | ZonedDateTime.java | 1222 public ZonedDateTime with(TemporalAdjuster adjuster) { in with() argument 1224 if (adjuster instanceof LocalDate) { in with() 1225 return resolveLocal(LocalDateTime.of((LocalDate) adjuster, dateTime.toLocalTime())); in with() 1226 } else if (adjuster instanceof LocalTime) { in with() 1227 return resolveLocal(LocalDateTime.of(dateTime.toLocalDate(), (LocalTime) adjuster)); in with() 1228 } else if (adjuster instanceof LocalDateTime) { in with() 1229 return resolveLocal((LocalDateTime) adjuster); in with() 1230 } else if (adjuster instanceof OffsetDateTime) { in with() 1231 OffsetDateTime odt = (OffsetDateTime) adjuster; in with() 1233 } else if (adjuster instanceof Instant) { in with() [all …]
|
D | OffsetTime.java | 673 public OffsetTime with(TemporalAdjuster adjuster) { in with() argument 675 if (adjuster instanceof LocalTime) { in with() 676 return with((LocalTime) adjuster, offset); in with() 677 } else if (adjuster instanceof ZoneOffset) { in with() 678 return with(time, (ZoneOffset) adjuster); in with() 679 } else if (adjuster instanceof OffsetTime) { in with() 680 return (OffsetTime) adjuster; in with() 682 return (OffsetTime) 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 | 736 public LocalTime with(TemporalAdjuster adjuster) { in with() argument 738 if (adjuster instanceof LocalTime) { in with() 739 return (LocalTime) adjuster; in with() 741 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 | MinguoDate.java | 340 public MinguoDate with(TemporalAdjuster adjuster) { in with() argument 341 return 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 | 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);
|