Home
last modified time | relevance | path

Searched refs:ofYears (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java96 assertPeriod(Period.ofYears(0), 0, 0, 0); in factory_ofYears_int()
97 assertPeriod(Period.ofYears(1), 1, 0, 0); in factory_ofYears_int()
98 assertPeriod(Period.ofYears(234), 234, 0, 0); in factory_ofYears_int()
99 assertPeriod(Period.ofYears(-100), -100, 0, 0); in factory_ofYears_int()
100 assertPeriod(Period.ofYears(Integer.MAX_VALUE), Integer.MAX_VALUE, 0, 0); in factory_ofYears_int()
101 assertPeriod(Period.ofYears(Integer.MIN_VALUE), Integer.MIN_VALUE, 0, 0); in factory_ofYears_int()
268 {"P1Y", Period.ofYears(1)}, in data_factory_parseSuccess()
269 {"P12Y", Period.ofYears(12)}, in data_factory_parseSuccess()
270 {"P987654321Y", Period.ofYears(987654321)}, in data_factory_parseSuccess()
271 {"P+1Y", Period.ofYears(1)}, in data_factory_parseSuccess()
[all …]
DTCKYearMonth.java794 {YearMonth.of(1, 1), Period.ofYears(1), YearMonth.of(2, 1), null}, in data_plus_TemporalAmount()
795 {YearMonth.of(1, 1), Period.ofYears(-12), YearMonth.of(-11, 1), null}, in data_plus_TemporalAmount()
796 {YearMonth.of(1, 1), Period.ofYears(0), YearMonth.of(1, 1), null}, in data_plus_TemporalAmount()
797 {YearMonth.of(999999999, 12), Period.ofYears(0), YearMonth.of(999999999, 12), null}, in data_plus_TemporalAmount()
798 {YearMonth.of(-999999999, 1), Period.ofYears(0), YearMonth.of(-999999999, 1), null}, in data_plus_TemporalAmount()
799 {YearMonth.of(0, 1), Period.ofYears(-999999999), YearMonth.of(-999999999, 1), null}, in data_plus_TemporalAmount()
800 {YearMonth.of(0, 12), Period.ofYears(999999999), YearMonth.of(999999999, 12), null}, in data_plus_TemporalAmount()
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()
1009 {YearMonth.of(1, 1), Period.ofYears(1), YearMonth.of(0, 1), null}, in data_minus_TemporalAmount()
[all …]
DTCKYear.java487 {2012, Period.ofYears(0), 2012}, in data_plusValid()
488 {2012, Period.ofYears(1), 2013}, in data_plusValid()
489 {2012, Period.ofYears(2), 2014}, in data_plusValid()
490 {2012, Period.ofYears(-2), 2010}, in data_plusValid()
619 {2012, Period.ofYears(0), 2012}, in data_minusValid()
620 {2012, Period.ofYears(1), 2011}, in data_minusValid()
621 {2012, Period.ofYears(2), 2010}, in data_minusValid()
622 {2012, Period.ofYears(-2), 2014}, in data_minusValid()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestPeriod.java86 assertSame(Period.ofYears(0), Period.ZERO); in factory_zeroSingleton()
100 Period test5Y = Period.ofYears(5); in test_hashCode()
/libcore/ojluni/src/main/java/java/time/
DPeriod.java175 public static Period ofYears(int years) { in ofYears() method in Period