/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseChronology.java | 446 int yoe = 0; in resolveYearOfEra() local 448 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); // always validated in resolveYearOfEra() 458 return resolveYMD(era, yoe, fieldValues, resolverStyle); in resolveYearOfEra() 462 return resolveYD(era, yoe, fieldValues, resolverStyle); in resolveYearOfEra() 472 …private ChronoLocalDate resolveYMD(JapaneseEra era, int yoe, Map<TemporalField,Long> fieldValues, … in resolveYMD() argument 476 int y = prolepticYearLenient(era, yoe); in resolveYMD() 484 if (yoe < 1) { in resolveYMD() 485 throw new DateTimeException("Invalid YearOfEra: " + yoe); in resolveYMD() 487 int y = prolepticYearLenient(era, yoe); in resolveYMD() 497 if (result.getEra() != era && result.get(YEAR_OF_ERA) > 1 && yoe > 1) { in resolveYMD() [all …]
|
D | AbstractChronology.java | 517 int yoe; in resolveYearOfEra() local 519 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); in resolveYearOfEra() 521 yoe = Math.toIntExact(yoeLong); in resolveYearOfEra() 525 addFieldValue(fieldValues, YEAR, prolepticYear(eraObj, yoe)); in resolveYearOfEra() 530 addFieldValue(fieldValues, YEAR, prolepticYear(chronoDate.getEra(), yoe)); in resolveYearOfEra() 538 addFieldValue(fieldValues, YEAR, yoe); in resolveYearOfEra() 541 addFieldValue(fieldValues, YEAR, prolepticYear(eraObj, yoe)); in resolveYearOfEra()
|
D | ChronoLocalDateImpl.java | 430 long yoe = getLong(YEAR_OF_ERA); in toString() local 438 .append(yoe) in toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKJapaneseChronology.java | 196 … public void test_createEymd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEymd() argument 197 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.date(era, yoe, moy, dom); in test_createEymd() 198 JapaneseDate dateByDateFactory = JapaneseDate.of(era, yoe, moy, dom); in test_createEymd() 204 public void test_createEyd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEyd() argument 205 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.dateYearDay(era, yoe, doy); in test_createEyd() 206 JapaneseDate dateByDateFactory = JapaneseDate.of(era, yoe, moy, dom); in test_createEyd() 212 …public void test_createByEra_isEqual(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDat… in test_createByEra_isEqual() argument 213 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_isEqual() 219 …public void test_createByEra_chronologyTemporalFactory(JapaneseEra era, int yoe, int moy, int dom,… in test_createByEra_chronologyTemporalFactory() argument 220 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_chronologyTemporalFactory() [all …]
|
D | CopticDate.java | 338 long yoe = getLong(YEAR_OF_ERA); in toString() local 346 .append(yoe) in toString()
|
D | TCKIsoChronology.java | 346 …public void test_resolve_yearOfEra(ResolverStyle style, Integer e, Integer yoe, Integer y, ChronoF… in test_resolve_yearOfEra() argument 351 if (yoe != null) { in test_resolve_yearOfEra() 352 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra()
|
D | TCKMinguoChronology.java | 621 …public void test_resolve_yearOfEra(ResolverStyle style, Integer e, Integer yoe, Integer y, ChronoF… in test_resolve_yearOfEra() argument 626 if (yoe != null) { in test_resolve_yearOfEra() 627 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra()
|
D | TCKThaiBuddhistChronology.java | 597 …public void test_resolve_yearOfEra(ResolverStyle style, Integer e, Integer yoe, Integer y, ChronoF… in test_resolve_yearOfEra() argument 602 if (yoe != null) { in test_resolve_yearOfEra() 603 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra()
|