Searched refs:ofMonths (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 109 assertPeriod(Period.ofMonths(0), 0, 0, 0); in factory_ofMonths_int() 110 assertPeriod(Period.ofMonths(1), 0, 1, 0); in factory_ofMonths_int() 111 assertPeriod(Period.ofMonths(234), 0, 234, 0); in factory_ofMonths_int() 112 assertPeriod(Period.ofMonths(-100), 0, -100, 0); in factory_ofMonths_int() 113 assertPeriod(Period.ofMonths(Integer.MAX_VALUE), 0, Integer.MAX_VALUE, 0); in factory_ofMonths_int() 114 assertPeriod(Period.ofMonths(Integer.MIN_VALUE), 0, Integer.MIN_VALUE, 0); in factory_ofMonths_int() 282 {"P1M", Period.ofMonths(1)}, in data_factory_parseSuccess() 283 {"P12M", Period.ofMonths(12)}, in data_factory_parseSuccess() 284 {"P987654321M", Period.ofMonths(987654321)}, in data_factory_parseSuccess() 285 {"P+1M", Period.ofMonths(1)}, in data_factory_parseSuccess() [all …]
|
D | TCKYearMonth.java | 802 {YearMonth.of(1, 1), Period.ofMonths(1), YearMonth.of(1, 2), null}, in data_plus_TemporalAmount() 803 {YearMonth.of(1, 1), Period.ofMonths(-12), YearMonth.of(0, 1), null}, in data_plus_TemporalAmount() 804 {YearMonth.of(1, 1), Period.ofMonths(121), YearMonth.of(11, 2), null}, in data_plus_TemporalAmount() 805 {YearMonth.of(1, 1), Period.ofMonths(0), YearMonth.of(1, 1), null}, in data_plus_TemporalAmount() 806 {YearMonth.of(999999999, 12), Period.ofMonths(0), YearMonth.of(999999999, 12), null}, in data_plus_TemporalAmount() 807 {YearMonth.of(-999999999, 1), Period.ofMonths(0), YearMonth.of(-999999999, 1), null}, in data_plus_TemporalAmount() 808 {YearMonth.of(-999999999, 2), Period.ofMonths(-1), YearMonth.of(-999999999, 1), null}, in data_plus_TemporalAmount() 809 {YearMonth.of(999999999, 11), Period.ofMonths(1), YearMonth.of(999999999, 12), null}, in data_plus_TemporalAmount() 814 {YearMonth.of(1, 1), Period.ofMonths(2).withYears(1), YearMonth.of(2, 3), null}, in data_plus_TemporalAmount() 815 {YearMonth.of(1, 1), Period.ofMonths(-1).withYears(-12), YearMonth.of(-12, 12), null}, in data_plus_TemporalAmount() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestPeriod.java | 87 assertSame(Period.ofMonths(0), Period.ZERO); in factory_zeroSingleton() 99 Period test5M = Period.ofMonths(5); in test_hashCode()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 188 public static Period ofMonths(int months) { in ofMonths() method in Period
|