Searched refs:eras (Results 1 - 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DTCKHijrahEra.java99 List<Era> eraList = HijrahChronology.INSTANCE.eras();
100 HijrahEra[] eras = HijrahEra.values();
101 assertEquals(eraList.size(), eras.length);
102 for (HijrahEra era : eras) {
H A DTCKIsoEra.java98 List<Era> eraList = IsoChronology.INSTANCE.eras();
99 IsoEra[] eras = IsoEra.values();
100 assertEquals(eraList.size(), eras.length);
101 for (IsoEra era : eras) {
H A DTCKMinguoEra.java103 List<Era> eraList = MinguoChronology.INSTANCE.eras();
104 MinguoEra[] eras = MinguoEra.values() ;
105 assertEquals(eraList.size(), eras.length);
106 for (MinguoEra era : eras) {
H A DTCKThaiBuddhistEra.java102 List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras();
103 ThaiBuddhistEra[] eras = ThaiBuddhistEra.values();
104 assertEquals(eraList.size(), eras.length);
105 for (ThaiBuddhistEra era : eras) {
H A DTCKJapaneseEra.java99 List<Era> eraList = JapaneseChronology.INSTANCE.eras();
100 JapaneseEra[] eras = JapaneseEra.values();
101 assertEquals(eraList.size(), eras.length);
102 for (JapaneseEra era : eras) {
112 // eras may be added after release
H A DCopticChronology.java80 * <li>era - There are two eras, the current 'Era of the Martyrs' (AM) and the previous era (ERA_ERA_BEFORE_AM).
225 public List<Era> eras() { method in class:CopticChronology
H A DTCKJapaneseChronology.java385 assertTrue(JapaneseChronology.INSTANCE.eras().contains(eraObj));
431 // Verify that the eras from every other Chronology are invalid
436 List<Era> eras = chrono.eras();
437 for (Era era : eras) {
559 List<Era> eras = JapaneseChronology.INSTANCE.eras();
560 assertTrue(eras.contains(era), "Era is not present in JapaneseChronology.INSTANCE.eras()");
602 List<Era> actualEras = JapaneseChronology.INSTANCE.eras();
[all...]
H A DTCKMinguoChronology.java298 assertTrue(MinguoChronology.INSTANCE.eras().contains(eraObj));
322 // Verify that the eras from every other Chronology are invalid
327 List<Era> eras = chrono.eras();
328 for (Era era : eras) {
H A DTCKThaiBuddhistChronology.java305 assertTrue(ThaiBuddhistChronology.INSTANCE.eras().contains(eraObj));
329 // Verify that the eras from every other Chronology are invalid
334 List<Era> eras = chrono.eras();
335 for (Era era : eras) {
H A DTCKHijrahChronology.java166 // Verify that the eras from every other Chronology are invalid
171 List<Era> eras = chrono.eras();
172 for (Era era : eras) {
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DAbstractCalendar.java60 private Era[] eras; field in class:AbstractCalendar
66 if (eras != null) {
67 for (int i = 0; i < eras.length; i++) {
68 if (eras[i].equals(eraName)) {
69 return eras[i];
78 if (eras != null) {
79 e = new Era[eras.length];
80 System.arraycopy(eras, 0, e, 0, eras.length);
86 if (eras
99 setEras(Era[] eras) argument
[all...]
H A DLocalGregorianCalendar.java43 private Era[] eras; field in class:LocalGregorianCalendar
127 // Parse calendar.*.eras
128 String props = calendarProps.getProperty("calendar." + name + ".eras");
132 List<Era> eras = new ArrayList<>();
167 eras.add(era);
171 if (eras.isEmpty()) {
172 throw new RuntimeException("No eras for " + name);
175 Era[] eraArray = new Era[eras.size()];
176 eras.toArray(eraArray);
181 private LocalGregorianCalendar(String name, Era[] eras) { argument
[all...]
H A DJulianCalendar.java41 private static final Era[] eras = { field in class:JulianCalendar
62 if (era != eras[0] || era != eras[1]) {
74 if (getEra() == eras[BCE]) {
87 setKnownEra(eras[BCE]);
90 setKnownEra(eras[CE]);
114 setEras(eras);
/libcore/luni/src/test/java/libcore/java/time/chrono/
H A DChronologyDisplayNameTest.java35 * Test display names of chronologies and their eras.
37 * and that their eras have a display name as well.
61 List<Era> eras = chronology.eras();
63 for (Era era : eras) {
H A DChronologyTest.java130 public List<Era> eras() { method in class:ChronologyTest.DummyChronology
/libcore/ojluni/src/main/java/java/text/
H A DDateFormatSymbols.java151 String eras[] = null; field in class:DateFormatSymbols
455 return Arrays.copyOf(eras, eras.length);
463 eras = Arrays.copyOf(newEras, newEras.length);
742 hashCode = 11 * hashCode + Arrays.hashCode(eras);
766 if (!(Arrays.equals(eras, that.eras)
834 eras = localeData.eras;
951 dst.eras
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DJapaneseImperialCalendar.java42 * supported from the Meiji era. The following are the eras supported
126 // Imperial eras. The sun.util.calendar.LocalGregorianCalendar
130 private static final Era[] eras; field in class:JapaneseImperialCalendar
158 * *: depends on eras
224 eras = new Era[length];
227 // eras[BEFORE_MEIJI] and sinceFixedDate[BEFORE_MEIJI] are the
231 eras[index++] = BEFORE_MEIJI_ERA;
235 eras[index++] = e;
238 LEAST_MAX_VALUES[ERA] = MAX_VALUES[ERA] = eras.length - 1;
246 for (int i = 1; i < eras
[all...]
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseChronology.java103 * Only Meiji and later eras are supported;
376 * {@link JapaneseEra#MEIJI}), only Meiji and later eras are supported.
388 public List<Era> eras() { method in class:JapaneseChronology
394 JapaneseEra[] eras = JapaneseEra.values();
395 return eras[eras.length - 1];
H A DAbstractChronology.java441 * then the last era in {@link #eras()} is used.
536 List<Era> eras = eras();
537 if (eras.isEmpty()) {
540 Era eraObj = eras.get(eras.size() - 1);
H A DMinguoChronology.java89 * <li>era - There are two eras, the current 'Republic' (ERA_ROC) and the previous era (ERA_BEFORE_ROC).
308 public List<Era> eras() { method in class:MinguoChronology
H A DChronology.java553 * If the chronology makes active use of eras, such as {@code JapaneseChronology}
570 * Most calendar systems have a single epoch dividing the time-line into two eras.
571 * However, some have multiple eras, such as one for the reign of each leader.
575 * Later eras must have sequentially higher values.
576 * Earlier eras must have sequentially lower values.
588 * Gets the list of eras for the chronology.
591 * If the calendar system does not support the concept of eras, an empty
594 * @return the list of eras for the chronology, may be immutable, not null
596 List<Era> eras(); method in interface:Chronology
H A DIsoChronology.java104 * <li>era - There are two eras, 'Current Era' (CE) and 'Before Current Era' (BCE).
400 public List<Era> eras() { method in class:IsoChronology
H A DThaiBuddhistChronology.java90 * <li>era - There are two eras, the current 'Buddhist' (ERA_BE) and the previous era (ERA_BEFORE_BE).
125 * Narrow names for eras.
129 * Short names for eras.
133 * Full names for eras.
344 public List<Era> eras() { method in class:ThaiBuddhistChronology
/libcore/luni/src/main/java/libcore/icu/
H A DLocaleData.java50 public String[] eras; // "BC", "AD". field in class:LocaleData
/libcore/luni/src/test/java/libcore/libcore/icu/
H A DLocaleDataTest.java37 assertEquals("BC", l.eras[0]);

Completed in 383 milliseconds

12