Home
last modified time | relevance | path

Searched refs:ThaiBuddhistEra (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKThaiBuddhistEra.java65 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()
DTCKThaiBuddhistChronology.java87 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 …]
DTCKChronology.java95 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/
DTestEraDisplayName.java128 { 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/
DTCKEraSerialization.java76 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/
DThaiBuddhistChronology.java332 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()
DThaiBuddhistEra.java113 public enum ThaiBuddhistEra implements Era { enum
137 public static ThaiBuddhistEra of(int thaiBuddhistEra) { in of()
DThaiBuddhistDate.java235 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/
DThaiBuddhistChronologyTest.java22 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/
Dopenjdk_java_files.bp844 "ojluni/src/main/java/java/time/chrono/ThaiBuddhistEra.java",
DEXPECTED_UPSTREAM851 …in/java/java/time/chrono/ThaiBuddhistEra.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…
/libcore/api/
Dcurrent.txt12560 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;