Home
last modified time | relevance | path

Searched refs:eraValue (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseEra.java193 private final transient int eraValue; field in JapaneseEra
204 private JapaneseEra(int eraValue, LocalDate since) { in JapaneseEra() argument
205 this.eraValue = eraValue; in JapaneseEra()
216 return ERA_CONFIG[ordinal(eraValue)]; in getPrivateEra()
240 if (japaneseEra < MEIJI.eraValue || japaneseEra + ERA_OFFSET > KNOWN_ERAS.length) { in of()
349 private static int ordinal(int eraValue) { in ordinal() argument
350 return eraValue + ERA_OFFSET - 1; in ordinal()
365 return eraValue; in getValue()
448 byte eraValue = in.readByte(); in readExternal()
449 return JapaneseEra.of(eraValue); in readExternal()
DMinguoChronology.java303 public MinguoEra eraOf(int eraValue) { in eraOf() argument
304 return MinguoEra.of(eraValue); in eraOf()
DThaiBuddhistChronology.java339 public ThaiBuddhistEra eraOf(int eraValue) { in eraOf() argument
340 return ThaiBuddhistEra.of(eraValue); in eraOf()
DIsoChronology.java395 public IsoEra eraOf(int eraValue) { in eraOf() argument
396 return IsoEra.of(eraValue); in eraOf()
DJapaneseChronology.java383 public JapaneseEra eraOf(int eraValue) { in eraOf() argument
384 return JapaneseEra.of(eraValue); in eraOf()
DChronology.java585 Era eraOf(int eraValue); in eraOf() argument
DHijrahChronology.java564 public HijrahEra eraOf(int eraValue) { in eraOf() argument
565 switch (eraValue) { in eraOf()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahEra.java86 public void test_valueOf(HijrahEra era , String eraName, int eraValue) { in test_valueOf() argument
87 assertEquals(era.getValue(), eraValue); in test_valueOf() local
89 assertEquals(HijrahChronology.INSTANCE.eraOf(eraValue), era); in test_valueOf()
90 assertEquals(HijrahEra.of(eraValue), era); in test_valueOf()
DTCKIsoEra.java87 public void test_valueOf(IsoEra era , String eraName, int eraValue) { in test_valueOf() argument
88 assertEquals(era.getValue(), eraValue); in test_valueOf() local
89 assertEquals(IsoEra.of(eraValue), era); in test_valueOf()
DTCKThaiBuddhistEra.java91 public void test_valueOf(ThaiBuddhistEra era , String eraName, int eraValue) { in test_valueOf() argument
92 assertEquals(era.getValue(), eraValue); in test_valueOf() local
93 assertEquals(ThaiBuddhistEra.of(eraValue), era); in test_valueOf()
DTCKMinguoEra.java91 public void test_valueOf(MinguoEra era , String eraName, int eraValue) { in test_valueOf() argument
92 assertEquals(era.getValue(), eraValue); in test_valueOf() local
93 assertEquals(MinguoEra.of(eraValue), era); in test_valueOf()
DTCKJapaneseEra.java91 public void test_valueOf(JapaneseEra era , String eraName, int eraValue) { in test_valueOf() argument
92 assertEquals(era.getValue(), eraValue); in test_valueOf() local
93 assertEquals(JapaneseEra.of(eraValue), era); in test_valueOf()
DCopticChronology.java220 public Era eraOf(int eraValue) { in eraOf() argument
221 return CopticEra.of(eraValue); in eraOf()
DTCKJapaneseChronology.java395 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument
396 Era eraObj = JapaneseChronology.INSTANCE.eraOf(eraValue); in test_prolepticYear()
403 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument
570 public void test_Japanese_Eras(Era era, int eraValue, String name) { in test_Japanese_Eras() argument
571 assertEquals(era.getValue(), eraValue, "EraValue"); in test_Japanese_Eras() local
573 … assertEquals(era, JapaneseChronology.INSTANCE.eraOf(eraValue), "JapaneseChronology.eraOf()"); in test_Japanese_Eras()
592 public void test_JapaneseEra_singletons(Era expectedEra, int eraValue, String name) { in test_JapaneseEra_singletons() argument
596 actualEra = JapaneseEra.of(eraValue); in test_JapaneseEra_singletons()
DTCKThaiBuddhistChronology.java303 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument
304 Era eraObj = ThaiBuddhistChronology.INSTANCE.eraOf(eraValue); in test_prolepticYear()
311 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument
DTCKMinguoChronology.java296 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument
297 Era eraObj = MinguoChronology.INSTANCE.eraOf(eraValue); in test_prolepticYear()
304 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java125 public Era eraOf(int eraValue) { in eraOf() argument