Searched refs:IsoEra (Results 1 – 10 of 10) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoEra.java | 65 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()
|
D | TCKChronology.java | 79 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/ |
D | IsoEra.java | 105 public enum IsoEra implements Era { enum 129 public static IsoEra of(int isoEra) { in of()
|
D | IsoChronology.java | 388 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/ |
D | IsoChronologyTest.java | 28 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/ |
D | TCKEraSerialization.java | 73 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/ |
D | YearMonthTest.java | 23 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/ |
D | TestIsoChronology.java | 62 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()
|
D | TCKYear.java | 92 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/ |
D | openjdk_java_files.bp | 780 "ojluni/src/main/java/java/time/chrono/IsoEra.java",
|