Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoEra.java65 import java.time.chrono.IsoEra;
81 {IsoEra.BCE, "BCE", 0}, in data_of_eras()
82 {IsoEra.CE, "CE", 1}, in data_of_eras()
87 public void test_valueOf(IsoEra era , String eraName, int eraValue) { in test_valueOf()
89 assertEquals(IsoEra.of(eraValue), era); in test_valueOf()
90 assertEquals(IsoEra.valueOf(eraName), era); in test_valueOf()
99 IsoEra[] eras = IsoEra.values(); in test_values()
101 for (IsoEra era : eras) { in test_values()
111 for (IsoEra era : IsoEra.values()) { in test_range()
DTCKChronology.java79 import java.time.chrono.IsoEra;
288 ChronoLocalDate date1 = chrono.dateYearDay(IsoEra.CE, 5, 60); in test_IsoChronology_dateYearDay()
289 ChronoLocalDate date2 = chrono.date(IsoEra.CE, 5, 3, 1); in test_IsoChronology_dateYearDay()
290 assertEquals(date1, IsoChronology.INSTANCE.dateYearDay(IsoEra.CE, 5, 60)); in test_IsoChronology_dateYearDay()
291 assertEquals(date2, IsoChronology.INSTANCE.dateYearDay(IsoEra.CE, 5, 60)); in test_IsoChronology_dateYearDay()
/libcore/ojluni/src/main/java/java/time/chrono/
DIsoEra.java105 public enum IsoEra implements Era { enum
129 public static IsoEra of(int isoEra) { in of()
DIsoChronology.java388 if (era instanceof IsoEra == false) { in prolepticYear()
391 return (era == IsoEra.CE ? yearOfEra : 1 - yearOfEra); in prolepticYear()
395 public IsoEra eraOf(int eraValue) { in eraOf()
396 return IsoEra.of(eraValue); in eraOf()
401 return Arrays.<Era>asList(IsoEra.values()); in eras()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java28 import java.time.chrono.IsoEra;
57 IsoEra expectedEra = values[0] <= 0 ? IsoEra.BCE : IsoEra.CE; in test_dateYear()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKEraSerialization.java73 import java.time.chrono.IsoEra;
103 {IsoEra.BCE}, in data_of_calendars()
104 {IsoEra.CE}, in data_of_calendars()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java23 import java.time.chrono.IsoEra;
50 assertSame(ym, ym.with(ChronoField.ERA, IsoEra.CE.getValue())); in test_with_TemporalField_long()
51 assertSame(bceYm, bceYm.with(ChronoField.ERA, IsoEra.BCE.getValue())); in test_with_TemporalField_long()
53 assertEquals(bceYm, ym.with(ChronoField.ERA, IsoEra.BCE.getValue())); in test_with_TemporalField_long()
54 assertEquals(ym, bceYm.with(ChronoField.ERA, IsoEra.CE.getValue())); in test_with_TemporalField_long()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java62 import static java.time.chrono.IsoEra.BCE;
63 import static java.time.chrono.IsoEra.CE;
81 import java.time.chrono.IsoEra;
188 LocalDate test = IsoChronology.INSTANCE.date(IsoEra.BCE, year, month, dayOfMonth); in test_date_withEra()
189 assertEquals(test.getEra(), IsoEra.BCE); in test_date_withEra()
DTCKYear.java92 import java.time.chrono.IsoEra;
794 assertEquals(result, base.with(IsoEra.of(0))); in test_with()
796 int prolepticYear = IsoChronology.INSTANCE.prolepticYear(IsoEra.of(0), 5); in test_with()
/libcore/
Dopenjdk_java_files.bp780 "ojluni/src/main/java/java/time/chrono/IsoEra.java",