Searched refs:withYears (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKPeriod.java577 // withYears()
581 assertPeriod(Period.of(1, 2, 3).withYears(1), 1, 2, 3);
582 assertPeriod(Period.of(1, 2, 3).withYears(10), 10, 2, 3);
583 assertPeriod(Period.of(1, 2, 3).withYears(-10), -10, 2, 3);
584 assertPeriod(Period.of(-1, -2, -3).withYears(10), 10, -2, -3);
585 assertPeriod(Period.of(1, 2, 3).withYears(0), 0, 2, 3);
H A DTCKYearMonth.java814 {YearMonth.of(1, 1), Period.ofMonths(2).withYears(1), YearMonth.of(2, 3), null},
815 {YearMonth.of(1, 1), Period.ofMonths(-1).withYears(-12), YearMonth.of(-12, 12), null},
1029 {YearMonth.of(1, 1), Period.ofMonths(2).withYears(1), YearMonth.of(-1, 11), null},
1030 {YearMonth.of(1, 1), Period.ofMonths(-1).withYears(-12), YearMonth.of(13, 2), null},
/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java551 public Period withYears(int years) { method in class:Period

Completed in 119 milliseconds