Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java115 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_nonLeap()
128 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_leap()
149 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_nonLeap()
162 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_leap()
183 … LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date); in test_firstDayOfNextMonth_nonLeap()
196 … LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date); in test_firstDayOfNextMonth_leap()
217 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_nonLeap()
230 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_leap()
251 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfYear().adjustInto(date); in test_lastDayOfYear_nonLeap()
264 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfYear().adjustInto(date); in test_lastDayOfYear_leap()
[all …]
DTCKJulianFields.java134 assertEquals(field.adjustInto(LocalDate.MAX, value), date); in test_samples_set()
135 assertEquals(field.adjustInto(LocalDate.MIN, value), date); in test_samples_set()
136 assertEquals(field.adjustInto(JAN01_1970, value), date); in test_samples_set()
137 assertEquals(field.adjustInto(DEC31_1969, value), date); in test_samples_set()
138 assertEquals(field.adjustInto(NOV12_1945, value), date); in test_samples_set()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDayOfWeek.java345 … assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 2)), LocalDate.of(2012, 8, 27)); in test_adjustInto()
346 … assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 3)), LocalDate.of(2012, 9, 3)); in test_adjustInto()
347 … assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 4)), LocalDate.of(2012, 9, 3)); in test_adjustInto()
348 … assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 10)), LocalDate.of(2012, 9, 10)); in test_adjustInto()
349 … assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 11)), LocalDate.of(2012, 9, 10)); in test_adjustInto()
354 DayOfWeek.MONDAY.adjustInto((Temporal) null); in test_adjustInto_null()
DTCKZoneOffset.java594 … ZonedDateTime zonedDateTime_result = (ZonedDateTime)(base.adjustInto(zonedDateTime_target));
598 … OffsetDateTime offsetDateTime_result = (OffsetDateTime)(base.adjustInto(offsetDateTime_target));
608 … OffsetDateTime offsetDateTime_result = (OffsetDateTime)base.adjustInto(offsetDateTime_target);
613 … ZonedDateTime zonedDateTime_result = (ZonedDateTime)(base.adjustInto(zonedDateTime_target));
621 base.adjustInto((LocalDate.of(1909, 2, 2)));
DTCKMonthDay.java588 assertEquals(test.adjustInto(date), LocalDate.of(2007, 6, 30)); in test_adjustDate()
595 assertEquals(test.adjustInto(date), LocalDate.of(2007, 2, 28)); in test_adjustDate_resolve()
602 assertEquals(test.adjustInto(date), date); in test_adjustDate_equal()
607 TEST_07_15.adjustInto((LocalDate) null); in test_adjustDate_null()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjuster.java150 Temporal adjustInto(Temporal temporal); in adjustInto() method
DTemporal.java190 return adjuster.adjustInto(this); in with()
DTemporalField.java306 <R extends Temporal> R adjustInto(R temporal, long newValue); in adjustInto() method
DIsoFields.java336 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method
406 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method
461 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method
535 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method
DJulianFields.java282 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method in JulianFields.Field
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java172 LocalDate adjusted = DAY_OF_WEEK.adjustInto(date, j); in test_adjustInto_dow()
201 LocalDate adjusted = weekField.adjustInto(date, j); in test_adjustInto_week()
229 LocalDate adjusted = yearField.adjustInto(date, j); in test_adjustInto_wby()
DMockFieldNoValue.java121 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method in MockFieldNoValue
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java439 return ChronoLocalDateImpl.ensureValid(getChronology(), field.adjustInto(this, newValue)); in with()
547 default Temporal adjustInto(Temporal temporal) { in adjustInto() method
DEra.java300 default Temporal adjustInto(Temporal temporal) { in adjustInto() method
/libcore/ojluni/src/main/java/java/time/
DYear.java568 return (Year) adjuster.adjustInto(this); in with()
624 return field.adjustInto(this, newValue); in with()
852 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in Year
DYearMonth.java624 return (YearMonth) adjuster.adjustInto(this); in with()
689 return field.adjustInto(this, newValue); in with()
984 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in YearMonth
DInstant.java650 return (Instant) adjuster.adjustInto(this); in with()
716 return field.adjustInto(this, newValue); in with()
1088 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in Instant
DOffsetTime.java682 return (OffsetTime) adjuster.adjustInto(this); in with()
729 return field.adjustInto(this, newValue); in with()
1114 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in OffsetTime
DDayOfWeek.java453 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in DayOfWeek
DLocalDateTime.java920 return (LocalDateTime) adjuster.adjustInto(this); in with()
967 return field.adjustInto(this, newValue); in with()
1622 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in LocalDateTime
1623 return ChronoLocalDateTime.super.adjustInto(temporal); in adjustInto()
DLocalDate.java906 return (LocalDate) adjuster.adjustInto(this); in with()
1035 return field.adjustInto(this, newValue); in with()
1543 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in LocalDate
1544 return ChronoLocalDate.super.adjustInto(temporal); in adjustInto()
DOffsetDateTime.java913 return (OffsetDateTime) adjuster.adjustInto(this); in with()
972 return field.adjustInto(this, newValue); in with()
1584 public Temporal adjustInto(Temporal temporal) { in adjustInto() method in OffsetDateTime
/libcore/luni/src/test/java/libcore/java/time/chrono/
DEraTest.java128 public <R extends Temporal> R adjustInto(R temporal, long newValue) { in adjustInto() method in EraTest.TestTemporalField
/libcore/ojluni/src/test/java/time/test/java/time/
DTestMonthDay.java119 assertSame(test.adjustInto(date), date); in test_adjustDate_same()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java642 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 6, 28)), HijrahDate.of(1434, 7, 1)); in test_adjustInto()
643 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1432, 4, 13)), HijrahDate.of(1432, 4, 14)… in test_adjustInto()
644 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1433, 11, 29)), HijrahDate.of(1433, 12, 4… in test_adjustInto()
645 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 5, 10)), HijrahDate.of(1434, 5, 11)… in test_adjustInto()
646 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 9, 11)), HijrahDate.of(1434, 9, 12)… in test_adjustInto()

12