Searched refs:withMonths (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 593 assertPeriod(Period.of(1, 2, 3).withMonths(2), 1, 2, 3); in test_withMonths() 594 assertPeriod(Period.of(1, 2, 3).withMonths(10), 1, 10, 3); in test_withMonths() 595 assertPeriod(Period.of(1, 2, 3).withMonths(-10), 1, -10, 3); in test_withMonths() 596 assertPeriod(Period.of(-1, -2, -3).withMonths(10), -1, 10, -3); in test_withMonths() 597 assertPeriod(Period.of(1, 2, 3).withMonths(0), 1, 0, 3); in test_withMonths()
|
D | TCKYearMonth.java | 811 {YearMonth.of(1, 1), Period.ofYears(1).withMonths(2), YearMonth.of(2, 3), null}, in data_plus_TemporalAmount() 812 {YearMonth.of(1, 1), Period.ofYears(-12).withMonths(-1), YearMonth.of(-12, 12), null}, in data_plus_TemporalAmount() 1026 {YearMonth.of(1, 1), Period.ofYears(1).withMonths(2), YearMonth.of(-1, 11), null}, in data_minus_TemporalAmount() 1027 {YearMonth.of(1, 1), Period.ofYears(-12).withMonths(-1), YearMonth.of(13, 2), null}, in data_minus_TemporalAmount()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 573 public Period withMonths(int months) { in withMonths() method in Period
|