/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 78 assertEquals(JapaneseEra.MEIJI, JapaneseDate.from(LocalDate.of(1873, 1, 1)).getEra()); in test_JapaneseDate_getEra() 79 assertEquals(JapaneseEra.TAISHO, JapaneseDate.from(LocalDate.of(1913, 1, 1)).getEra()); in test_JapaneseDate_getEra() 80 assertEquals(SHOWA, JapaneseDate.from(LocalDate.of(1927, 1, 1)).getEra()); in test_JapaneseDate_getEra() 81 assertEquals(JapaneseEra.HEISEI, JapaneseDate.from(LocalDate.of(1990, 1, 1)).getEra()); in test_JapaneseDate_getEra() 146 assertEquals("Heisei", heiseiDate.getEra().toString()); in test_JapaneseEras_calendarsDotProperties() 147 assertEquals("Reiwa", reiwaDate.getEra().toString()); in test_JapaneseEras_calendarsDotProperties()
|
D | ThaiBuddhistChronologyTest.java | 79 assertEquals(ThaiBuddhistEra.BEFORE_BE, ThaiBuddhistDate.of(-1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra() 80 assertEquals(ThaiBuddhistEra.BE, ThaiBuddhistDate.of(1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra()
|
D | MinguoChronologyTest.java | 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()
|
D | HijrahChronologyTest.java | 37 assertEquals(HijrahEra.AH, HijrahDate.of(1300, 1, 1).getEra()); in test_HijrahDate_getEra()
|
D | IsoChronologyTest.java | 58 assertEquals(expectedEra, localDate.getEra()); in test_dateYear()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarDate.java | 97 public Era getEra() { in getEra() method in CalendarDate 381 && getEra() == date.getEra(); in isSameDate() 400 return (getEra() == that.getEra() in equals() 419 Era e = getEra(); in hashCode()
|
D | LocalGregorianCalendar.java | 59 if (getEra() != era) { in setEra() 105 Era era = getEra(); in toString() 249 Era era = ldate.getEra(); in validate() 258 if (tmp.getEra() != era) { in validate() 364 Era era = ldate.getEra(); in normalizeYear()
|
D | ImmutableGregorianDate.java | 41 public Era getEra() { in getEra() method in ImmutableGregorianDate 42 return date.getEra(); in getEra()
|
D | JulianCalendar.java | 74 if (getEra() == eras[BCE]) { in getNormalizedYear() 98 Era era = getEra(); in toString()
|
D | CalendarSystem.java | 299 public abstract Era getEra(String eraName); in getEra() method in CalendarSystem
|
D | AbstractCalendar.java | 65 public Era getEra(String eraName) { in getEra() method in AbstractCalendar
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 603 d.setEra(jdate.getEra()); in roll() 803 if (!(d.getEra() == jdate.getEra() && d.getYear() == jdate.getYear())) { in roll() 810 if (!(d.getEra() == jdate.getEra() && d.getYear() == jdate.getYear())) { in roll() 1237 jd.setEra(d.getEra()); in getActualMinimum() 1313 if (date.getEra() == d.getEra() && date.getYear() == d.getYear()) { in getActualMaximum() 1347 if (date.getEra() == d.getEra() && date.getYear() == d.getYear()) { in getActualMaximum() 1371 if (date.getEra() == jd.getEra() && date.getYear() == jd.getYear()) { in getActualMaximum() 1375 } else if (date.getEra() == null && date.getYear() == getMinimum(YEAR)) { in getActualMaximum() 1380 jd.setEra(d.getEra()); in getActualMaximum() 1429 if (!(date.getEra() == jd.getEra() && date.getYear() == jd.getYear())) { in getActualMaximum() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseDate.java | 288 if (era.getPrivateEra() != jdate.getEra() || yearOfEra != jdate.getYear()) { in ofYearDay() 328 this.era = JapaneseEra.toJapaneseEra(jdate.getEra()); in JapaneseDate() 372 public JapaneseEra getEra() { in getEra() method in JapaneseDate 606 return withYear(getEra(), year); in withYear()
|
D | ChronoLocalDate.java | 322 default Era getEra() { in getEra() method
|
D | ChronoLocalDateImpl.java | 436 .append(getEra()) in toString()
|
D | ThaiBuddhistDate.java | 234 public ThaiBuddhistEra getEra() { in getEra() method in ThaiBuddhistDate
|
D | MinguoDate.java | 234 public MinguoEra getEra() { in getEra() method in MinguoDate
|
D | JapaneseChronology.java | 497 if (result.getEra() != era && result.get(YEAR_OF_ERA) > 1 && yoe > 1) { in resolveYMD()
|
D | HijrahDate.java | 309 public HijrahEra getEra() { in getEra() method in HijrahDate
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | CalendarSystem.java | 79 public abstract sun.util.calendar.Era getEra(java.lang.String eraName); in getEra() method in CalendarSystem
|
D | ImmutableGregorianDate.java | 35 public sun.util.calendar.Era getEra() { in getEra() method in ImmutableGregorianDate
|
D | CalendarDate.java | 40 public sun.util.calendar.Era getEra() { in getEra() method in CalendarDate
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TestIsoChronology.java | 189 assertEquals(test.getEra(), IsoEra.BCE); in test_date_withEra()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 344 .append(getEra()) in toString()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 716 public Era getEra() { in getEra() method in LocalDate 717 return ChronoLocalDate.super.getEra(); in getEra()
|