Home
last modified time | relevance | path

Searched refs:MinguoEra (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKMinguoEra.java66 import java.time.chrono.MinguoEra;
82 {MinguoEra.BEFORE_ROC, "BEFORE_ROC", 0}, in data_of_eras()
83 {MinguoEra.ROC, "ROC", 1}, in data_of_eras()
91 public void test_valueOf(MinguoEra era , String eraName, int eraValue) { in test_valueOf()
93 assertEquals(MinguoEra.of(eraValue), era); in test_valueOf()
94 assertEquals(MinguoEra.valueOf(eraName), era); in test_valueOf()
104 MinguoEra[] eras = MinguoEra.values() ; in test_values()
106 for (MinguoEra era : eras) { in test_values()
116 for (MinguoEra era : MinguoEra.values()) { in test_range()
DTCKMinguoChronology.java85 import java.time.chrono.MinguoEra;
151 …{MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 1916 - YDIFF, 60), LocalDate.of(1916, 2, 29)… in data_samples()
152 … {MinguoChronology.INSTANCE.dateYearDay(MinguoEra.BEFORE_ROC, 4, 60), LocalDate.of(1908, 2, 29)}, in data_samples()
153 …{MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 2000 - YDIFF, 60), LocalDate.of(2000, 2, 29)… in data_samples()
154 …{MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 2400 - YDIFF, 60), LocalDate.of(2400, 2, 29)… in data_samples()
156 … {MinguoChronology.INSTANCE.date(MinguoEra.ROC, 1916 - YDIFF, 2, 29 ), LocalDate.of(1916, 2, 29)}, in data_samples()
157 … {MinguoChronology.INSTANCE.date(MinguoEra.BEFORE_ROC, 4, 2, 29), LocalDate.of(1908, 2, 29)}, in data_samples()
158 … {MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2000 - YDIFF, 2, 29), LocalDate.of(2000, 2, 29)}, in data_samples()
159 … {MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2400 - YDIFF, 2, 29), LocalDate.of(2400, 2, 29)}, in data_samples()
227 MinguoDate h1 = MinguoChronology.INSTANCE.date(MinguoEra.ROC, 1, 2, 3); in test_MinguoChrono()
[all …]
DTCKChronology.java83 import java.time.chrono.MinguoEra;
279 ChronoLocalDate date1 = chrono.dateYearDay(MinguoEra.ROC, 5, 60); in test_MinguoChronology_dateYearDay()
280 ChronoLocalDate date2 = chrono.date(MinguoEra.ROC, 5, 2, 29); in test_MinguoChronology_dateYearDay()
281 assertEquals(date1, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60)); in test_MinguoChronology_dateYearDay()
282 assertEquals(date2, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60)); in test_MinguoChronology_dateYearDay()
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoEra.java107 public enum MinguoEra implements Era { enum
131 public static MinguoEra of(int minguoEra) { in of()
DMinguoChronology.java296 if (era instanceof MinguoEra == false) { in prolepticYear()
299 return (era == MinguoEra.ROC ? yearOfEra : 1 - yearOfEra); in prolepticYear()
303 public MinguoEra eraOf(int eraValue) { in eraOf()
304 return MinguoEra.of(eraValue); in eraOf()
309 return Arrays.<Era>asList(MinguoEra.values()); in eras()
DMinguoDate.java234 public MinguoEra getEra() { in getEra()
235 return (getProlepticYear() >= 1 ? MinguoEra.ROC : MinguoEra.BEFORE_ROC); in getEra()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKEraSerialization.java75 import java.time.chrono.MinguoEra;
105 {MinguoEra.BEFORE_ROC}, in data_of_calendars()
106 {MinguoEra.ROC}, in data_of_calendars()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DMinguoChronologyTest.java24 import java.time.chrono.MinguoEra;
79 assertEquals(MinguoEra.BEFORE_ROC, MinguoDate.of(-1, 1, 1).getEra()); in test_MinguoDate_getEra()
80 assertEquals(MinguoEra.ROC, MinguoDate.of(1, 1, 1).getEra()); in test_MinguoDate_getEra()
/libcore/
Dopenjdk_java_files.bp805 "ojluni/src/main/java/java/time/chrono/MinguoEra.java",
/libcore/api/
Dcurrent.txt11597 method public java.time.chrono.MinguoEra eraOf(int);
11615 method public java.time.chrono.MinguoEra getEra();
11632 public enum MinguoEra implements java.time.chrono.Era {
11634 method public static java.time.chrono.MinguoEra of(int);
11635 enum_constant public static final java.time.chrono.MinguoEra BEFORE_ROC;
11636 enum_constant public static final java.time.chrono.MinguoEra ROC;