/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistEra.java | 65 import java.time.chrono.ThaiBuddhistEra; 81 {ThaiBuddhistEra.BEFORE_BE, "BEFORE_BE", 0}, in data_of_eras() 82 {ThaiBuddhistEra.BE, "BE", 1}, in data_of_eras() 91 public void test_valueOf(ThaiBuddhistEra era , String eraName, int eraValue) { in test_valueOf() 93 assertEquals(ThaiBuddhistEra.of(eraValue), era); in test_valueOf() 94 assertEquals(ThaiBuddhistEra.valueOf(eraName), era); in test_valueOf() 103 ThaiBuddhistEra[] eras = ThaiBuddhistEra.values(); in test_values() 105 for (ThaiBuddhistEra era : eras) { in test_values() 115 for (ThaiBuddhistEra era : ThaiBuddhistEra.values()) { in test_range()
|
D | TCKThaiBuddhistChronology.java | 87 import java.time.chrono.ThaiBuddhistEra; 188 …{ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 1916 + YDIFF, 60), LocalDate.of(1… in data_samples() 189 …{ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BEFORE_BE, -1907 - YDIFF, 60), LocalD… in data_samples() 190 …{ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2000 + YDIFF, 60), LocalDate.of(2… in data_samples() 191 …{ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2400 + YDIFF, 60), LocalDate.of(2… in data_samples() 193 …{ThaiBuddhistChronology.INSTANCE.date(ThaiBuddhistEra.BE, 1916 + YDIFF, 2, 29 ), LocalDate.of(1916… in data_samples() 194 …{ThaiBuddhistChronology.INSTANCE.date(ThaiBuddhistEra.BEFORE_BE, -1907 - YDIFF, 2, 29), LocalDate.… in data_samples() 195 …{ThaiBuddhistChronology.INSTANCE.date(ThaiBuddhistEra.BE, 2000 + YDIFF, 2, 29), LocalDate.of(2000,… in data_samples() 196 …{ThaiBuddhistChronology.INSTANCE.date(ThaiBuddhistEra.BE, 2400 + YDIFF, 2, 29), LocalDate.of(2400,… in data_samples() 277 {1, ThaiBuddhistEra.BE, 4 + YDIFF, 4 + YDIFF, true}, in data_prolepticYear() [all …]
|
D | TCKChronology.java | 95 import java.time.chrono.ThaiBuddhistEra; 326 ChronoLocalDate date1 = chrono.dateYearDay(ThaiBuddhistEra.BE, 2459, 60); in test_ThaiBuddhistChronology_dateYearDay() 327 ChronoLocalDate date2 = chrono.date(ThaiBuddhistEra.BE, 2459, 2, 29); in test_ThaiBuddhistChronology_dateYearDay() 328 … assertEquals(date1, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60)); in test_ThaiBuddhistChronology_dateYearDay() 329 … assertEquals(date2, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60)); in test_ThaiBuddhistChronology_dateYearDay() 400 …{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1873 + YDIFF_THAIBUDDHIST, 9, 7, 1, 2, 2, OF… in data_era_epochSecond() 401 …{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1928 + YDIFF_THAIBUDDHIST, 2, 28, 1, 2, 2, O… in data_era_epochSecond() 402 …{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1989 + YDIFF_THAIBUDDHIST, 1, 8, 1, 2, 2, OF… in data_era_epochSecond()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestEraDisplayName.java | 128 { ThaiBuddhistEra.BEFORE_BE, TextStyle.FULL, Locale.US, "0" }, in eraDisplayName() 129 { ThaiBuddhistEra.BE, TextStyle.FULL, Locale.US, "BE" }, in eraDisplayName() 130 { ThaiBuddhistEra.BEFORE_BE, TextStyle.FULL, THAI, "0" }, in eraDisplayName() 131 { ThaiBuddhistEra.BE, TextStyle.FULL, THAI, in eraDisplayName() 133 { ThaiBuddhistEra.BEFORE_BE, TextStyle.SHORT, Locale.US, "0" }, in eraDisplayName() 134 { ThaiBuddhistEra.BE, TextStyle.SHORT, Locale.US, "BE" }, in eraDisplayName() 135 { ThaiBuddhistEra.BEFORE_BE, TextStyle.SHORT, THAI, "0" }, in eraDisplayName() 136 { ThaiBuddhistEra.BE, TextStyle.SHORT, THAI, "\u0e1e.\u0e28." }, in eraDisplayName() 137 { ThaiBuddhistEra.BEFORE_BE, TextStyle.NARROW, Locale.US, "0" }, in eraDisplayName() 138 { ThaiBuddhistEra.BE, TextStyle.NARROW, Locale.US, "BE" }, in eraDisplayName() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKEraSerialization.java | 76 import java.time.chrono.ThaiBuddhistEra; 107 {ThaiBuddhistEra.BEFORE_BE}, in data_of_calendars() 108 {ThaiBuddhistEra.BE}, in data_of_calendars()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ThaiBuddhistChronology.java | 332 if (!(era instanceof ThaiBuddhistEra)) { in prolepticYear() 335 return (era == ThaiBuddhistEra.BE ? yearOfEra : 1 - yearOfEra); in prolepticYear() 339 public ThaiBuddhistEra eraOf(int eraValue) { in eraOf() 340 return ThaiBuddhistEra.of(eraValue); in eraOf() 345 return List.of(ThaiBuddhistEra.values()); in eras()
|
D | ThaiBuddhistEra.java | 113 public enum ThaiBuddhistEra implements Era { enum 137 public static ThaiBuddhistEra of(int thaiBuddhistEra) { in of()
|
D | ThaiBuddhistDate.java | 235 public ThaiBuddhistEra getEra() { in getEra() 236 return (getProlepticYear() >= 1 ? ThaiBuddhistEra.BE : ThaiBuddhistEra.BEFORE_BE); in getEra()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 22 import java.time.chrono.ThaiBuddhistEra; 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()
|
/libcore/ |
D | openjdk_java_files.bp | 844 "ojluni/src/main/java/java/time/chrono/ThaiBuddhistEra.java",
|
D | EXPECTED_UPSTREAM | 851 …in/java/java/time/chrono/ThaiBuddhistEra.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…
|
/libcore/api/ |
D | current.txt | 12560 method public java.time.chrono.ThaiBuddhistEra eraOf(int); 12578 method public java.time.chrono.ThaiBuddhistEra getEra(); 12598 public enum ThaiBuddhistEra implements java.time.chrono.Era { 12600 method public static java.time.chrono.ThaiBuddhistEra of(int); 12601 enum_constant public static final java.time.chrono.ThaiBuddhistEra BE; 12602 enum_constant public static final java.time.chrono.ThaiBuddhistEra BEFORE_BE;
|