Searched refs:HijrahEra (Results 1 - 9 of 9) sorted by relevance
/openjdk9/jdk/test/java/time/tck/java/time/chrono/ |
H A D | TCKHijrahEra.java | 65 import java.time.chrono.HijrahEra; 81 {HijrahEra.AH, "AH", 1}, 86 public void test_valueOf(HijrahEra era , String eraName, int eraValue) { 90 assertEquals(HijrahEra.of(eraValue), era); 91 assertEquals(HijrahEra.valueOf(eraName), era); 100 HijrahEra[] eras = HijrahEra.values(); 102 for (HijrahEra era : eras) { 112 for (HijrahEra era : HijrahEra [all...] |
H A D | TCKChronology.java | 82 import java.time.chrono.HijrahEra; 281 ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178); 282 ChronoLocalDate date2 = chrono.date(HijrahEra.AH, 1434, 7, 1); 283 assertEquals(date1, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); 284 assertEquals(date2, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); 387 {HijrahChronology.INSTANCE, HijrahEra.AH, 1434, 9, 7, 1, 2, 2, OFFSET_P0100},
|
H A D | TCKHijrahChronology.java | 73 import java.time.chrono.HijrahEra; 205 Object[][] result = new Object[ResolverStyle.values().length * HijrahEra.values().length][]; 208 for (HijrahEra era : HijrahEra.values()) { 216 public void test_resolve_yearOfEra_eraOnly_valid(ResolverStyle style, HijrahEra era) { 226 public void test_resolve_yearOfEra_eraAndYearOfEraOnly_valid(ResolverStyle style, HijrahEra era) { 239 public void test_resolve_yearOfEra_eraAndYearOnly_valid(ResolverStyle style, HijrahEra era) {
|
H A D | TCKIsoChronology.java | 73 import java.time.chrono.HijrahEra; 788 IsoChronology.INSTANCE.epochSecond(HijrahEra.AH, 2009, 2, 29, 1, 2, 2, OFFSET_P0100);
|
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/ |
H A D | HijrahEra.java | 78 * <b>Do not use {@code ordinal()} to obtain the numeric representation of {@code HijrahEra}. 86 public enum HijrahEra implements Era { enum 96 * Obtains an instance of {@code HijrahEra} from an {@code int} value. 101 * @return the HijrahEra.AH singleton, not null 104 public static HijrahEra of(int hijrahEra) {
|
H A D | HijrahChronology.java | 362 * @throws ClassCastException if the {@code era} is not a {@code HijrahEra} 393 * @throws ClassCastException if the {@code era} is not a {@code HijrahEra} 485 if (era instanceof HijrahEra == false) { 486 throw new ClassCastException("Era must be HijrahEra"); 492 * Creates the HijrahEra object from the numeric value. 495 * This method returns the singleton HijrahEra for the value 1. 502 public HijrahEra eraOf(int eraValue) { 505 return HijrahEra.AH; 513 return List.of(HijrahEra.values());
|
H A D | HijrahDate.java | 310 * defined by {@link HijrahEra}. 315 public HijrahEra getEra() { 316 return HijrahEra.AH;
|
/openjdk9/jdk/test/java/time/tck/java/time/chrono/serial/ |
H A D | TCKEraSerialization.java | 72 import java.time.chrono.HijrahEra; 86 * and HijrahEra are defined and provided by Enum. 102 {HijrahEra.AH},
|
/openjdk9/jdk/test/java/time/tck/java/time/ |
H A D | TestIsoChronology.java | 79 import java.time.chrono.HijrahEra; 202 IsoChronology.INSTANCE.date((Era) HijrahEra.AH, 1, 1, 1);
|
Completed in 99 milliseconds