/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKMonthDay.java | 518 assertEquals(MonthDay.of(6, 30).withMonth(1), MonthDay.of(1, 30)); in test_withMonth() 523 assertEquals(MonthDay.of(7, 31).withMonth(6), MonthDay.of(6, 30)); in test_withMonth_adjustToValid() 528 assertEquals(MonthDay.of(7, 31).withMonth(2), MonthDay.of(2, 29)); in test_withMonth_adjustToValidFeb() 534 assertEquals(test.withMonth(6), test); in test_withMonth_int_noChangeEqual() 539 MonthDay.of(6, 30).withMonth(0); in test_withMonth_tooLow() 544 MonthDay.of(6, 30).withMonth(13); in test_withMonth_tooHigh()
|
D | TCKYearMonth.java | 604 assertEquals(test.withMonth(1), YearMonth.of(2008, 1)); in test_withMonth() 610 assertEquals(test.withMonth(6), test); in test_withMonth_int_noChange_equal() 616 test.withMonth(0); in test_withMonth_tooLow() 622 test.withMonth(13); in test_withMonth_tooHigh()
|
D | TCKZonedDateTime.java | 1393 … assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withMonth(1), ZONE_0100)); 1408 ZonedDateTime test = base.withMonth(1); 1409 … assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withMonth(1), ZONE_0100)); 1415 ZonedDateTime test = base.withMonth(6); 1421 TEST_DATE_TIME.withMonth(13); 1426 TEST_DATE_TIME.withMonth(0);
|
D | TCKLocalDate.java | 912 LocalDate t = TEST_2007_07_15.withMonth(1); 918 TEST_2007_07_15.withMonth(13); 923 LocalDate t = LocalDate.of(2007, 12, 31).withMonth(11);
|
D | TCKLocalDateTime.java | 1215 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withMonth(1); 1221 TEST_2007_07_15_12_30_40_987654321.withMonth(13); 1226 LocalDateTime t = LocalDateTime.of(2007, 12, 31, 12, 30).withMonth(11);
|
D | TCKOffsetDateTime.java | 833 OffsetDateTime test = base.withMonth(1);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestMonthDay.java | 107 assertSame(test.withMonth(6), test); in test_withMonth_int_noChangeSame()
|
D | TestOffsetDateTime.java | 155 OffsetDateTime test = base.withMonth(6); in test_withMonth_noChange()
|
D | TestLocalDate.java | 134 LocalDate t = TEST_2007_07_15.withMonth(7); in test_withMonth_int_noChange_same()
|
D | TestLocalDateTime.java | 133 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withMonth(7); in test_withMonth_int_noChange()
|
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 681 case MONTH_OF_YEAR: return withMonth((int) newValue); in with() 716 public YearMonth withMonth(int month) { in withMonth() method in YearMonth
|
D | OffsetDateTime.java | 1004 public OffsetDateTime withMonth(int month) { in withMonth() method in OffsetDateTime 1005 return with(dateTime.withMonth(month), offset); in withMonth()
|
D | MonthDay.java | 520 public MonthDay withMonth(int month) { in withMonth() method in MonthDay
|
D | LocalDateTime.java | 999 public LocalDateTime withMonth(int month) { in withMonth() method in LocalDateTime 1000 return with(date.withMonth(month), time); in withMonth()
|
D | ZonedDateTime.java | 1351 public ZonedDateTime withMonth(int month) { in withMonth() method in ZonedDateTime 1352 return resolveLocal(dateTime.withMonth(month)); in withMonth()
|
D | LocalDate.java | 1027 case MONTH_OF_YEAR: return withMonth((int) newValue); in with() 1069 public LocalDate withMonth(int month) { in withMonth() method in LocalDate
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 241 public java.time.OffsetDateTime withMonth(int month) { in withMonth() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 1110 private ZonedDateTime endDate = date.withYear(2005).withMonth(1).withDayOfMonth(2); in weekDate()
|