Searched refs:adjustInto (Results 1 - 25 of 47) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAdjuster.java80 * temporal = thisAdjuster.adjustInto(temporal);
121 * temporal = thisAdjuster.adjustInto(temporal);
150 Temporal adjustInto(Temporal temporal); method in interface:TemporalAdjuster
H A DTemporal.java181 * return adjuster.adjustInto(this);
190 return adjuster.adjustInto(this);
211 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
H A DTemporalField.java284 * temporal = thisField.adjustInto(temporal);
306 <R extends Temporal> R adjustInto(R temporal, long newValue); method in interface:TemporalField
H A DJulianFields.java108 * When 'JULIAN_DAY.adjustInto()' is applied to a date-time, the time of day portion remains unaltered.
109 * 'JULIAN_DAY.adjustInto()' and 'JULIAN_DAY.getFrom()' only apply to {@code Temporal} objects that
154 * When 'MODIFIED_JULIAN_DAY.adjustInto()' is applied to a date-time, the time of day portion remains unaltered.
155 * 'MODIFIED_JULIAN_DAY.adjustInto()' and 'MODIFIED_JULIAN_DAY.getFrom()' only apply to {@code Temporal} objects
192 * When 'RATA_DIE.adjustInto()' is applied to a date-time, the time of day portion remains unaltered.
193 * 'RATA_DIE.adjustInto()' and 'RATA_DIE.getFrom()' only apply to {@code Temporal} objects
282 public <R extends Temporal> R adjustInto(R temporal, long newValue) { method in class:JulianFields.Field
H A DIsoFields.java336 public <R extends Temporal> R adjustInto(R temporal, long newValue) {
406 public <R extends Temporal> R adjustInto(R temporal, long newValue) {
461 public <R extends Temporal> R adjustInto(R temporal, long newValue) {
535 public <R extends Temporal> R adjustInto(R temporal, long newValue) {
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
H A DTCKTemporalAdjusters.java115 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date);
128 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date);
149 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date);
162 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date);
183 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date);
196 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date);
217 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date);
230 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date);
251 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfYear().adjustInto(date);
264 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfYear().adjustInto(dat
[all...]
H A DTCKJulianFields.java134 assertEquals(field.adjustInto(LocalDate.MAX, value), date);
135 assertEquals(field.adjustInto(LocalDate.MIN, value), date);
136 assertEquals(field.adjustInto(JAN01_1970, value), date);
137 assertEquals(field.adjustInto(DEC31_1969, value), date);
138 assertEquals(field.adjustInto(NOV12_1945, value), date);
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKDayOfWeek.java341 // adjustInto()
345 assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 2)), LocalDate.of(2012, 8, 27));
346 assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 3)), LocalDate.of(2012, 9, 3));
347 assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 4)), LocalDate.of(2012, 9, 3));
348 assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 10)), LocalDate.of(2012, 9, 10));
349 assertEquals(DayOfWeek.MONDAY.adjustInto(LocalDate.of(2012, 9, 11)), LocalDate.of(2012, 9, 10));
354 DayOfWeek.MONDAY.adjustInto((Temporal) null);
H A DTCKZoneOffset.java586 // adjustInto()
592 //Do not change offset of ZonedDateTime after adjustInto()
594 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);
611 //Do not change offset of ZonedDateTime after adjustInto()
613 ZonedDateTime zonedDateTime_result = (ZonedDateTime)(base.adjustInto(zonedDateTime_target));
621 base.adjustInto((LocalDate.of(1909, 2, 2)));
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
H A DMockFieldNoValue.java121 public <R extends Temporal> R adjustInto(R temporal, long newValue) { method in class:MockFieldNoValue
H A DTestIsoWeekFields.java172 LocalDate adjusted = DAY_OF_WEEK.adjustInto(date, j);
201 LocalDate adjusted = weekField.adjustInto(date, j);
229 LocalDate adjusted = yearField.adjustInto(date, j);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DEra.java288 * temporal = thisEra.adjustInto(temporal);
300 default Temporal adjustInto(Temporal temporal) { method in interface:Era
H A DChronoLocalDate.java439 return ChronoLocalDateImpl.ensureValid(getChronology(), field.adjustInto(this, newValue));
535 * temporal = thisLocalDate.adjustInto(temporal);
547 default Temporal adjustInto(Temporal temporal) { method in interface:ChronoLocalDate
H A DChronoLocalDateTimeImpl.java286 return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster.adjustInto(this));
299 return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), field.adjustInto(this, newValue));
/libcore/ojluni/src/main/java/java/time/
H A DDayOfWeek.java430 * temporal = thisDayOfWeek.adjustInto(temporal);
453 public Temporal adjustInto(Temporal temporal) { method in class:DayOfWeek
H A DInstant.java638 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
650 return (Instant) adjuster.adjustInto(this);
684 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
716 return field.adjustInto(this, newValue);
1076 * temporal = thisInstant.adjustInto(temporal);
1088 public Temporal adjustInto(Temporal temporal) { method in class:Instant
H A DOffsetTime.java662 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
682 return (OffsetTime) adjuster.adjustInto(this);
707 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
729 return field.adjustInto(this, newValue);
1102 * temporal = thisOffsetTime.adjustInto(temporal);
1114 public Temporal adjustInto(Temporal temporal) { method in class:OffsetTime
H A DYear.java556 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
568 return (Year) adjuster.adjustInto(this);
599 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
624 return field.adjustInto(this, newValue);
840 * temporal = thisYear.adjustInto(temporal);
852 public Temporal adjustInto(Temporal temporal) { method in class:Year
H A DYearMonth.java612 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
624 return (YearMonth) adjuster.adjustInto(this);
662 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
689 return field.adjustInto(this, newValue);
972 * temporal = thisYearMonth.adjustInto(temporal);
984 public Temporal adjustInto(Temporal temporal) { method in class:YearMonth
H A DMonth.java587 * temporal = thisMonth.adjustInto(temporal);
608 public Temporal adjustInto(Temporal temporal) { method in class:Month
H A DLocalTime.java725 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
741 return (LocalTime) adjuster.adjustInto(this);
813 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
850 return field.adjustInto(this, newValue);
1314 * temporal = thisLocalTime.adjustInto(temporal);
1326 public Temporal adjustInto(Temporal temporal) { method in class:LocalTime
H A DOffsetDateTime.java891 * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
913 return (OffsetDateTime) adjuster.adjustInto(this);
947 * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
972 return field.adjustInto(this, newValue);
1572 * temporal = thisOffsetDateTime.adjustInto(temporal);
1584 public Temporal adjustInto(Temporal temporal) { method in class:OffsetDateTime
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestMonthDay.java119 assertSame(test.adjustInto(date), date);
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
H A DTestUmmAlQuraChronology.java640 assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 6, 28)), HijrahDate.of(1434, 7, 1));
641 assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1432, 4, 13)), HijrahDate.of(1432, 4, 14));
642 assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1433, 11, 29)), HijrahDate.of(1433, 12, 4));
643 assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 5, 10)), HijrahDate.of(1434, 5, 11));
644 assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 9, 11)), HijrahDate.of(1434, 9, 12));
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DTCKChronoLocalDate.java346 public Temporal adjustInto(Temporal ignore) { method in class:TCKChronoLocalDate.FixedAdjuster
476 public <R extends Temporal> R adjustInto(R temporal, long newValue) { method in class:TCKChronoLocalDate.FixedTemporalField

Completed in 314 milliseconds

12