Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDate.java120 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 …]
DTCKChronoLocalDateTime.java120 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/
DTemporal.java189 default Temporal with(TemporalAdjuster adjuster) { in with() argument
190 return adjuster.adjustInto(this); in with()
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java902 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()
DLocalDateTime.java911 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()
DLocalTime.java759 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()
DLocalDate.java901 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()
DYear.java567 public Year with(TemporalAdjuster adjuster) { in with() argument
568 return (Year) adjuster.adjustInto(this); in with()
DYearMonth.java623 public YearMonth with(TemporalAdjuster adjuster) { in with() argument
624 return (YearMonth) adjuster.adjustInto(this); in with()
DInstant.java649 public Instant with(TemporalAdjuster adjuster) { in with() argument
650 return (Instant) adjuster.adjustInto(this); in with()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java277 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()
DChronoLocalDate.java424 default ChronoLocalDate with(TemporalAdjuster adjuster) { in with() argument
425 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
DChronoLocalDateTime.java265 default ChronoLocalDateTime<D> with(TemporalAdjuster adjuster) { in with() argument
266 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
DChronoLocalDateImpl.java178 public D with(TemporalAdjuster adjuster) { in with() argument
179 return (D) ChronoLocalDate.super.with(adjuster); in with()
DChronoZonedDateTime.java412 default ChronoZonedDateTime<D> with(TemporalAdjuster adjuster) { in with() argument
413 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster)); in with()
DThaiBuddhistDate.java340 public ThaiBuddhistDate with(TemporalAdjuster adjuster) { in with() argument
341 return super.with(adjuster); in with()
DMinguoDate.java340 public MinguoDate with(TemporalAdjuster adjuster) { in with() argument
341 return super.with(adjuster); in with()
DHijrahDate.java429 public HijrahDate with(TemporalAdjuster adjuster) { in with() argument
430 return super.with(adjuster); in with()
DJapaneseDate.java549 public JapaneseDate with(TemporalAdjuster adjuster) { in with() argument
550 return super.with(adjuster); in with()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java229 public java.time.OffsetDateTime with(java.time.temporal.TemporalAdjuster adjuster) { in with() argument
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java493 …public void test_with_temporalAdjuster(Instant test, TemporalAdjuster adjuster, Instant expected, …
495 Instant result = test.with(adjuster);
499 Instant result = test.with(adjuster);
DTCKOffsetTime.java731 TemporalAdjuster adjuster = new TemporalAdjuster() {
737 assertEquals(TEST_11_30_59_500_PONE.with(adjuster), sample);
DTCKOffsetDateTime.java714 TemporalAdjuster adjuster = new TemporalAdjuster() {
720 assertEquals(TEST_2008_6_30_11_30_59_000000500.with(adjuster), sample);
DTCKLocalDate.java843 TemporalAdjuster adjuster = new TemporalAdjuster() {
849 assertEquals(TEST_2007_07_15.with(adjuster), sample);
DTCKLocalTime.java805 TemporalAdjuster adjuster = new TemporalAdjuster() { in test_with_adjustment() local
811 assertEquals(TEST_12_30_40_987654321.with(adjuster), sample); in test_with_adjustment()

12