/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 129 final Map<TemporalField, Long> fieldValues = new HashMap<>(); field in Parsed 171 cloned.fieldValues.putAll(this.fieldValues); in copy() 181 if (fieldValues.containsKey(field) || in isSupported() 192 Long value = fieldValues.get(field); in getLong() 241 fieldValues.keySet().retainAll(resolverFields); in resolve() 262 if (fieldValues.size() > 0) { in resolveFields() 266 for (Map.Entry<TemporalField, Long> entry : fieldValues.entrySet()) { in resolveFields() 268 … TemporalAccessor resolvedObject = targetField.resolve(fieldValues, this, resolverStyle); in resolveFields() 298 } else if (fieldValues.containsKey(targetField) == false) { in resolveFields() 318 Long old = fieldValues.put(changeField, changeValue); in updateCheckConflict() [all …]
|
D | DateTimeParseContext.java | 348 return currentParsed().fieldValues.get(field); in getParsed() 365 Long old = currentParsed().fieldValues.put(field, value); in setParsedField()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 453 …public ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverSty… in resolveDate() argument 455 if (fieldValues.containsKey(EPOCH_DAY)) { in resolveDate() 456 return dateEpochDay(fieldValues.remove(EPOCH_DAY)); in resolveDate() 460 resolveProlepticMonth(fieldValues, resolverStyle); in resolveDate() 463 ChronoLocalDate resolved = resolveYearOfEra(fieldValues, resolverStyle); in resolveDate() 469 if (fieldValues.containsKey(YEAR)) { in resolveDate() 470 if (fieldValues.containsKey(MONTH_OF_YEAR)) { in resolveDate() 471 if (fieldValues.containsKey(DAY_OF_MONTH)) { in resolveDate() 472 return resolveYMD(fieldValues, resolverStyle); in resolveDate() 474 if (fieldValues.containsKey(ALIGNED_WEEK_OF_MONTH)) { in resolveDate() [all …]
|
D | IsoChronology.java | 491 … public LocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument 492 return (LocalDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate() 496 void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveProlepticMonth() argument 497 Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); in resolveProlepticMonth() 502 addFieldValue(fieldValues, MONTH_OF_YEAR, Math.floorMod(pMonth, 12) + 1); in resolveProlepticMonth() 503 addFieldValue(fieldValues, YEAR, Math.floorDiv(pMonth, 12)); in resolveProlepticMonth() 508 LocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYearOfEra() argument 509 Long yoeLong = fieldValues.remove(YEAR_OF_ERA); in resolveYearOfEra() 514 Long era = fieldValues.remove(ERA); in resolveYearOfEra() 516 Long year = fieldValues.get(YEAR); in resolveYearOfEra() [all …]
|
D | JapaneseChronology.java | 433 …public JapaneseDate resolveDate(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle… in resolveDate() argument 434 return (JapaneseDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate() 438 …ChronoLocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle… in resolveYearOfEra() argument 440 Long eraLong = fieldValues.get(ERA); in resolveYearOfEra() 445 Long yoeLong = fieldValues.get(YEAR_OF_ERA); in resolveYearOfEra() 451 …if (era == null && yoeLong != null && fieldValues.containsKey(YEAR) == false && resolverStyle != R… in resolveYearOfEra() 456 if (fieldValues.containsKey(MONTH_OF_YEAR)) { in resolveYearOfEra() 457 if (fieldValues.containsKey(DAY_OF_MONTH)) { in resolveYearOfEra() 458 return resolveYMD(era, yoe, fieldValues, resolverStyle); in resolveYearOfEra() 461 if (fieldValues.containsKey(DAY_OF_YEAR)) { in resolveYearOfEra() [all …]
|
D | MinguoChronology.java | 334 … public MinguoDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument 335 return (MinguoDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
|
D | ThaiBuddhistChronology.java | 370 …public ThaiBuddhistDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverSt… in resolveDate() argument 371 return (ThaiBuddhistDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
|
D | Chronology.java | 674 ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle); in resolveDate() argument
|
D | HijrahChronology.java | 605 … public HijrahDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument 606 return (HijrahDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKHijrahChronology.java | 217 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra_eraOnly_valid() local 218 fieldValues.put(ChronoField.ERA, (long) era.getValue()); in test_resolve_yearOfEra_eraOnly_valid() 219 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraOnly_valid() 221 assertEquals(fieldValues.get(ChronoField.ERA), (Long) (long) era.getValue()); in test_resolve_yearOfEra_eraOnly_valid() 222 assertEquals(fieldValues.size(), 1); in test_resolve_yearOfEra_eraOnly_valid() 227 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() local 228 fieldValues.put(ChronoField.ERA, (long) era.getValue()); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 229 fieldValues.put(ChronoField.YEAR_OF_ERA, 1343L); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 230 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 232 assertEquals(fieldValues.get(ChronoField.ERA), null); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() [all …]
|
D | TCKIsoChronology.java | 347 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra() local 349 fieldValues.put(ChronoField.ERA, (long) e); in test_resolve_yearOfEra() 352 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra() 355 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_yearOfEra() 358 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 360 assertEquals(fieldValues.get(field), (Long) expected.longValue()); in test_resolve_yearOfEra() 361 assertEquals(fieldValues.size(), 1); in test_resolve_yearOfEra() 364 IsoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 435 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_ymd_lenient() local 436 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_ymd_lenient() [all …]
|
D | TCKThaiBuddhistChronology.java | 598 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra() local 600 fieldValues.put(ChronoField.ERA, (long) e); in test_resolve_yearOfEra() 603 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra() 606 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_yearOfEra() 609 ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 611 assertEquals(fieldValues.get(field), (Long) expected.longValue()); in test_resolve_yearOfEra() 612 assertEquals(fieldValues.size(), 1); in test_resolve_yearOfEra() 615 ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 686 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_ymd_lenient() local 687 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_ymd_lenient() [all …]
|
D | TCKMinguoChronology.java | 622 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra() local 624 fieldValues.put(ChronoField.ERA, (long) e); in test_resolve_yearOfEra() 627 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe); in test_resolve_yearOfEra() 630 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_yearOfEra() 633 MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 635 assertEquals(fieldValues.get(field), (Long) expected.longValue()); in test_resolve_yearOfEra() 636 assertEquals(fieldValues.size(), 1); in test_resolve_yearOfEra() 639 MinguoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() 710 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_ymd_lenient() local 711 fieldValues.put(ChronoField.YEAR, (long) y); in test_resolve_ymd_lenient() [all …]
|
D | TCKJapaneseChronology.java | 732 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra_eraOnly_valid() local 733 fieldValues.put(ChronoField.ERA, (long) era.getValue()); in test_resolve_yearOfEra_eraOnly_valid() 734 JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraOnly_valid() 736 assertEquals(fieldValues.get(ChronoField.ERA), (Long) (long) era.getValue()); in test_resolve_yearOfEra_eraOnly_valid() 737 assertEquals(fieldValues.size(), 1); in test_resolve_yearOfEra_eraOnly_valid() 742 Map<TemporalField, Long> fieldValues = new HashMap<>(); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() local 743 fieldValues.put(ChronoField.ERA, (long) era.getValue()); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 744 fieldValues.put(ChronoField.YEAR_OF_ERA, 1L); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 745 JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() 747 assertEquals(fieldValues.get(ChronoField.ERA), (Long) (long) era.getValue()); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 916 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument 917 final long value = fieldValues.get(this); in resolve() 926 fieldValues.remove(this); in resolve() 927 fieldValues.put(DAY_OF_WEEK, isoDow); in resolve() 932 if (fieldValues.containsKey(DAY_OF_WEEK) == false) { in resolve() 935 int isoDow = DAY_OF_WEEK.checkValidIntValue(fieldValues.get(DAY_OF_WEEK)); in resolve() 940 if (fieldValues.containsKey(YEAR)) { in resolve() 941 int year = YEAR.checkValidIntValue(fieldValues.get(YEAR)); // validate in resolve() 942 … if (rangeUnit == MONTHS && fieldValues.containsKey(MONTH_OF_YEAR)) { // week-of-month in resolve() 943 long month = fieldValues.get(MONTH_OF_YEAR); // not validated yet in resolve() [all …]
|
D | IsoFields.java | 344 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument 345 Long yearLong = fieldValues.get(YEAR); in resolve() 346 Long qoyLong = fieldValues.get(QUARTER_OF_YEAR); in resolve() 351 long doq = fieldValues.get(DAY_OF_QUARTER); in resolve() 369 fieldValues.remove(this); in resolve() 370 fieldValues.remove(YEAR); in resolve() 371 fieldValues.remove(QUARTER_OF_YEAR); in resolve() 468 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument 469 Long wbyLong = fieldValues.get(WEEK_BASED_YEAR); in resolve() 470 Long dowLong = fieldValues.get(DAY_OF_WEEK); in resolve() [all …]
|
D | JulianFields.java | 292 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument 293 long value = fieldValues.remove(this); in resolve()
|
D | TemporalField.java | 375 Map<TemporalField, Long> fieldValues, in resolve() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 1283 test.fieldValues.put(YEAR, (long) year); in createDate() 1286 test.fieldValues.put(MONTH_OF_YEAR, (long) month); in createDate() 1289 test.fieldValues.put(DAY_OF_MONTH, (long) day); in createDate() 1297 test.fieldValues.put(HOUR_OF_DAY, (long) hour); in createTime() 1300 test.fieldValues.put(MINUTE_OF_HOUR, (long) min); in createTime() 1303 test.fieldValues.put(SECOND_OF_MINUTE, (long) sec); in createTime() 1306 test.fieldValues.put(NANO_OF_SECOND, (long) nano); in createTime() 1316 test.fieldValues.put(YEAR, (long) year); in createDateTime() 1319 test.fieldValues.put(MONTH_OF_YEAR, (long) month); in createDateTime() 1322 test.fieldValues.put(DAY_OF_MONTH, (long) day); in createDateTime() [all …]
|
D | TCKDateTimeParseResolver.java | 1159 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument 1160 fieldValues.remove(this); in resolve()
|