Home
last modified time | relevance | path

Searched refs:Era (Results 1 – 25 of 49) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/calendar/
DLocalGregorianCalendar.java43 private Era[] eras;
58 public Date setEra(Era era) { in setEra()
92 void setLocalEra(Era era) { in setLocalEra()
105 Era era = getEra(); in toString()
132 List<Era> eras = new ArrayList<>(); in getLocalGregorianCalendar()
166 Era era = new Era(eraName, abbr, since, localTime); in getLocalGregorianCalendar()
175 Era[] eraArray = new Era[eras.size()]; in getLocalGregorianCalendar()
181 private LocalGregorianCalendar(String name, Era[] eras) { in LocalGregorianCalendar()
216 Era era = eras[i]; in adjustYear()
249 Era era = ldate.getEra(); in validate()
[all …]
DEra.java64 public final class Era { class
82 public Era(String name, String abbr, long since, boolean localTime) { in Era() method in Era
126 if (!(o instanceof Era)) { in equals()
129 Era that = (Era) o; in equals()
DJulianCalendar.java41 private static final Era[] eras = {
42 new Era("BeforeCommonEra", "B.C.E.", Long.MIN_VALUE, false),
43 new Era("CommonEra", "C.E.", -62135709175808L, true)
58 public Date setEra(Era era) { in setEra()
69 protected void setKnownEra(Era era) { in setKnownEra()
98 Era era = getEra(); in toString()
DAbstractCalendar.java60 private Era[] eras;
65 public Era getEra(String eraName) { in getEra()
76 public Era[] getEras() { in getEras()
77 Era[] e = null; in getEras()
79 e = new Era[eras.length]; in getEras()
90 Era e = eras[i]; in setEra()
99 protected void setEras(Era[] eras) { in setEras()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticChronology.java63 import java.time.chrono.Era;
212 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
220 public Era eraOf(int eraValue) { in eraOf()
225 public List<Era> eras() { in eras()
226 return Arrays.<Era>asList(CopticEra.values()); in eras()
DCopticEra.java60 import java.time.chrono.Era;
74 public enum CopticEra implements Era {
DTCKHijrahEra.java63 import java.time.chrono.Era;
99 List<Era> eraList = HijrahChronology.INSTANCE.eras(); in test_values()
DTCKIsoEra.java63 import java.time.chrono.Era;
98 List<Era> eraList = IsoChronology.INSTANCE.eras(); in test_values()
DTCKThaiBuddhistEra.java63 import java.time.chrono.Era;
102 List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras(); in test_values()
DTCKMinguoEra.java64 import java.time.chrono.Era;
103 List<Era> eraList = MinguoChronology.INSTANCE.eras(); in test_values()
DTCKJapaneseEra.java63 import java.time.chrono.Era;
100 List<Era> eraList = JapaneseChronology.INSTANCE.eras(); in test_values()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKEraSerialization.java71 import java.time.chrono.Era;
100 Era[][] data_of_calendars() { in data_of_calendars()
101 return new Era[][] { in data_of_calendars()
113 public void test_eraSerialization(Era era) throws IOException, ClassNotFoundException { in test_eraSerialization()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DLocalGregorianCalendar.java31 private LocalGregorianCalendar(java.lang.String name, sun.util.calendar.Era[] eras) { in LocalGregorianCalendar()
81 private boolean validateEra(sun.util.calendar.Era era) { in validateEra()
102 public boolean isLeapYear(sun.util.calendar.Era era, int year) { in isLeapYear()
110 private sun.util.calendar.Era[] eras;
126 public sun.util.calendar.LocalGregorianCalendar.Date setEra(sun.util.calendar.Era era) { in setEra()
149 void setLocalEra(sun.util.calendar.Era era) { in setLocalEra()
DAbstractCalendar.java36 public sun.util.calendar.Era getEra(java.lang.String eraName) { in getEra()
41 public sun.util.calendar.Era[] getEras() { in getEras()
49 protected void setEras(sun.util.calendar.Era[] eras) { in setEras()
135 private sun.util.calendar.Era[] eras;
DEra.java29 public final class Era { class
32 public Era(java.lang.String name, java.lang.String abbr, long since, boolean localTime) { in Era() method in Era
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java22 import java.time.chrono.Era;
120 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
125 public Era eraOf(int eraValue) { in eraOf()
130 public List<Era> eras() { in eras()
DChronologyDisplayNameTest.java22 import java.time.chrono.Era;
61 List<Era> eras = chronology.eras(); in testEras()
63 for (Era era : eras) { in testEras()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahEra.java86 public enum HijrahEra implements Era {
155 return Era.super.range(field); in range()
DJapaneseEra.java125 implements Era, Serializable {
131 static final sun.util.calendar.Era[] ERA_CONFIG;
214 sun.util.calendar.Era getPrivateEra() { in getPrivateEra()
322 static JapaneseEra toJapaneseEra(sun.util.calendar.Era privateEra) { in toJapaneseEra()
331 static sun.util.calendar.Era privateEraFrom(LocalDate isoDate) { in privateEraFrom()
398 return Era.super.range(field); in range()
DMinguoChronology.java176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
295 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
308 public List<Era> eras() { in eras()
309 return Arrays.<Era>asList(MinguoEra.values()); in eras()
DChronology.java311 default ChronoLocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
564 int prolepticYear(Era era, int yearOfEra); in prolepticYear()
585 Era eraOf(int eraValue); in eraOf()
596 List<Era> eras(); in eras()
DThaiBuddhistChronology.java212 public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
331 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
344 public List<Era> eras() { in eras()
345 return Arrays.<Era>asList(ThaiBuddhistEra.values()); in eras()
DIsoChronology.java187 public LocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
218 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
387 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
400 public List<Era> eras() { in eras()
401 return Arrays.<Era>asList(IsoEra.values()); in eras()
DThaiBuddhistEra.java107 public enum ThaiBuddhistEra implements Era {
DIsoEra.java105 public enum IsoEra implements Era {

12