/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | Temporal.java | 157 * This adjusts this date-time according to the rules of the specified adjuster. 158 * A simple adjuster might simply set the one of the fields, such as the year field. 159 * A more complex adjuster might set the date to the last day of the month. 163 * The adjuster is responsible for handling special cases, such as the varying 181 * return adjuster.adjustInto(this); 184 * @param adjuster the adjuster to use, not null 189 default Temporal with(TemporalAdjuster adjuster) { argument 190 return adjuster.adjustInto(this);
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | TCKChronoLocalDate.java | 120 TemporalAdjuster adjuster = new FixedAdjuster(date2); 123 date.with(adjuster); 130 ChronoLocalDate result = date.with(adjuster); 143 TemporalAmount adjuster = new FixedAdjuster(date2); 146 date.plus(adjuster); 153 ChronoLocalDate result = date.plus(adjuster); 166 TemporalAmount adjuster = new FixedAdjuster(date2); 169 date.minus(adjuster); 176 ChronoLocalDate result = date.minus(adjuster); 189 TemporalUnit adjuster [all...] |
H A D | TCKChronoLocalDateTime.java | 120 TemporalAdjuster adjuster = new FixedAdjuster(cdt2); 123 cdt.with(adjuster); 131 ChronoLocalDateTime<?> result = cdt.with(adjuster); 144 TemporalAmount adjuster = new FixedAdjuster(cdt2); 147 cdt.plus(adjuster); 155 ChronoLocalDateTime<?> result = cdt.plus(adjuster); 168 TemporalAmount adjuster = new FixedAdjuster(cdt2); 171 cdt.minus(adjuster); 179 ChronoLocalDateTime<?> result = cdt.minus(adjuster); 192 TemporalUnit adjuster [all...] |
H A D | TCKChronoZonedDateTime.java | 122 TemporalAdjuster adjuster = new FixedAdjuster(czdt2); 125 czdt.with(adjuster); 132 ChronoZonedDateTime<?> result = czdt.with(adjuster); 145 TemporalAmount adjuster = new FixedAdjuster(czdt2); 148 czdt.plus(adjuster); 156 ChronoZonedDateTime<?> result = czdt.plus(adjuster); 169 TemporalAmount adjuster = new FixedAdjuster(czdt2); 172 czdt.minus(adjuster); 180 ChronoZonedDateTime<?> result = czdt.minus(adjuster); 193 TemporalUnit adjuster [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | OffsetDateTime.java | 861 * The adjustment takes place using the specified adjuster strategy object. 862 * Read the documentation of the adjuster to understand what adjustment will be made. 864 * A simple adjuster might simply set the one of the fields, such as the year field. 865 * A more complex adjuster might set the date to the last day of the month. 871 * The adjuster is responsible for handling special cases, such as the varying 892 * specified adjuster passing {@code this} as the argument. 896 * @param adjuster the adjuster to use, not null 902 public OffsetDateTime with(TemporalAdjuster adjuster) { argument 904 if (adjuster instanceo [all...] |
H A D | OffsetTime.java | 648 * The adjustment takes place using the specified adjuster strategy object. 649 * Read the documentation of the adjuster to understand what adjustment will be made. 651 * A simple adjuster might simply set the one of the fields, such as the hour field. 652 * A more complex adjuster might set the time to the last hour of the day. 663 * specified adjuster passing {@code this} as the argument. 667 * @param adjuster the adjuster to use, not null 673 public OffsetTime with(TemporalAdjuster adjuster) { argument 675 if (adjuster instanceof LocalTime) { 676 return with((LocalTime) adjuster, offse [all...] |
H A D | ZonedDateTime.java | 1175 * The adjustment takes place using the specified adjuster strategy object. 1176 * Read the documentation of the adjuster to understand what adjustment will be made. 1178 * A simple adjuster might simply set the one of the fields, such as the year field. 1179 * A more complex adjuster might set the date to the last day of the month. 1185 * The adjuster is responsible for handling special cases, such as the varying 1212 * specified adjuster passing {@code this} as the argument. 1216 * @param adjuster the adjuster to use, not null 1222 public ZonedDateTime with(TemporalAdjuster adjuster) { argument 1224 if (adjuster instanceo [all...] |
H A D | LocalDateTime.java | 870 * The adjustment takes place using the specified adjuster strategy object. 871 * Read the documentation of the adjuster to understand what adjustment will be made. 873 * A simple adjuster might simply set the one of the fields, such as the year field. 874 * A more complex adjuster might set the date to the last day of the month. 881 * The adjuster is responsible for handling special cases, such as the varying 901 * specified adjuster passing {@code this} as the argument. 905 * @param adjuster the adjuster to use, not null 911 public LocalDateTime with(TemporalAdjuster adjuster) { argument 913 if (adjuster instanceo [all...] |
H A D | LocalTime.java | 718 * The adjustment takes place using the specified adjuster strategy object. 719 * Read the documentation of the adjuster to understand what adjustment will be made. 721 * A simple adjuster might simply set the one of the fields, such as the hour field. 722 * A more complex adjuster might set the time to the last hour of the day. 726 * specified adjuster passing {@code this} as the argument. 730 * @param adjuster the adjuster to use, not null 736 public LocalTime with(TemporalAdjuster adjuster) { argument 738 if (adjuster instanceof LocalTime) { 739 return (LocalTime) adjuster; [all...] |
H A D | Instant.java | 634 * The adjustment takes place using the specified adjuster strategy object. 635 * Read the documentation of the adjuster to understand what adjustment will be made. 639 * specified adjuster passing {@code this} as the argument. 643 * @param adjuster the adjuster to use, not null 649 public Instant with(TemporalAdjuster adjuster) { argument 650 return (Instant) adjuster.adjustInto(this);
|
H A D | Year.java | 552 * The adjustment takes place using the specified adjuster strategy object. 553 * Read the documentation of the adjuster to understand what adjustment will be made. 557 * specified adjuster passing {@code this} as the argument. 561 * @param adjuster the adjuster to use, not null 567 public Year with(TemporalAdjuster adjuster) { argument 568 return (Year) adjuster.adjustInto(this);
|
H A D | YearMonth.java | 604 * The adjustment takes place using the specified adjuster strategy object. 605 * Read the documentation of the adjuster to understand what adjustment will be made. 607 * A simple adjuster might simply set the one of the fields, such as the year field. 608 * A more complex adjuster might set the year-month to the next month that 613 * specified adjuster passing {@code this} as the argument. 617 * @param adjuster the adjuster to use, not null 623 public YearMonth with(TemporalAdjuster adjuster) { argument 624 return (YearMonth) adjuster.adjustInto(this);
|
H A D | LocalDate.java | 867 * The adjustment takes place using the specified adjuster strategy object. 868 * Read the documentation of the adjuster to understand what adjustment will be made. 870 * A simple adjuster might simply set the one of the fields, such as the year field. 871 * A more complex adjuster might set the date to the last day of the month. 878 * The adjuster is responsible for handling special cases, such as the varying 891 * specified adjuster passing {@code this} as the argument. 895 * @param adjuster the adjuster to use, not null 901 public LocalDate with(TemporalAdjuster adjuster) { argument 903 if (adjuster instanceo [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoLocalDateTimeImpl.java | 277 public ChronoLocalDateTimeImpl<D> with(TemporalAdjuster adjuster) { argument 278 if (adjuster instanceof ChronoLocalDate) { 280 return with((ChronoLocalDate) adjuster, time); 281 } else if (adjuster instanceof LocalTime) { 282 return with(date, (LocalTime) adjuster); 283 } else if (adjuster instanceof ChronoLocalDateTimeImpl) { 284 return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster); 286 return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster.adjustInto(this));
|
H A D | ChronoLocalDate.java | 424 default ChronoLocalDate with(TemporalAdjuster adjuster) { argument 425 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.with(adjuster));
|
H A D | ChronoLocalDateImpl.java | 178 public D with(TemporalAdjuster adjuster) { argument 179 return (D) ChronoLocalDate.super.with(adjuster);
|
H A D | ChronoLocalDateTime.java | 265 default ChronoLocalDateTime<D> with(TemporalAdjuster adjuster) { argument 266 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster));
|
H A D | ChronoZonedDateTime.java | 412 default ChronoZonedDateTime<D> with(TemporalAdjuster adjuster) { argument 413 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.with(adjuster));
|
H A D | MinguoDate.java | 340 public MinguoDate with(TemporalAdjuster adjuster) { argument 341 return super.with(adjuster);
|
H A D | ThaiBuddhistDate.java | 340 public ThaiBuddhistDate with(TemporalAdjuster adjuster) { argument 341 return super.with(adjuster);
|
H A D | HijrahDate.java | 425 * For example, if the adjuster requires an ISO chronology 429 public HijrahDate with(TemporalAdjuster adjuster) { argument 430 return super.with(adjuster);
|
H A D | JapaneseDate.java | 545 public JapaneseDate with(TemporalAdjuster adjuster) { argument 546 return super.with(adjuster);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKInstant.java | 493 public void test_with_temporalAdjuster(Instant test, TemporalAdjuster adjuster, Instant expected, Class<?> expectedEx) { argument 495 Instant result = test.with(adjuster); 499 Instant result = test.with(adjuster);
|
H A D | TCKOffsetTime.java | 731 TemporalAdjuster adjuster = new TemporalAdjuster() { 737 assertEquals(TEST_11_30_59_500_PONE.with(adjuster), sample);
|
H A D | TCKLocalDate.java | 843 TemporalAdjuster adjuster = new TemporalAdjuster() { 849 assertEquals(TEST_2007_07_15.with(adjuster), sample);
|