Home
last modified time | relevance | path

Searched refs:resolverStyle (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java423 …ic ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
430 resolveProlepticMonth(fieldValues, resolverStyle); in resolveDate()
433 ChronoLocalDate resolved = resolveYearOfEra(fieldValues, resolverStyle); in resolveDate()
442 return resolveYMD(fieldValues, resolverStyle); in resolveDate()
446 return resolveYMAA(fieldValues, resolverStyle); in resolveDate()
449 return resolveYMAD(fieldValues, resolverStyle); in resolveDate()
454 return resolveYD(fieldValues, resolverStyle); in resolveDate()
458 return resolveYAA(fieldValues, resolverStyle); in resolveDate()
461 return resolveYAD(fieldValues, resolverStyle); in resolveDate()
468 void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveProlepticMonth() argument
[all …]
DJapaneseChronology.java433 …blic JapaneseDate resolveDate(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
434 return (JapaneseDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
438 …ronoLocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYearOfEra() argument
451 … null && yoeLong != null && fieldValues.containsKey(YEAR) == false && resolverStyle != ResolverSty… in resolveYearOfEra()
458 return resolveYMD(era, yoe, fieldValues, resolverStyle); in resolveYearOfEra()
462 return resolveYD(era, yoe, fieldValues, resolverStyle); in resolveYearOfEra()
472 …veYMD(JapaneseEra era, int yoe, Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle) { in resolveYMD() argument
475 if (resolverStyle == ResolverStyle.LENIENT) { in resolveYMD()
483 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
505 …veYD(JapaneseEra era, int yoe, Map <TemporalField,Long> fieldValues, ResolverStyle resolverStyle) { in resolveYD() argument
[all …]
DIsoChronology.java585 … public LocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
586 return (LocalDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
590 void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveProlepticMonth() argument
593 if (resolverStyle != ResolverStyle.LENIENT) { in resolveProlepticMonth()
602 LocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYearOfEra() argument
605 if (resolverStyle != ResolverStyle.LENIENT) { in resolveYearOfEra()
611 if (resolverStyle == ResolverStyle.STRICT) { in resolveYearOfEra()
637 LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYMD() argument
639 if (resolverStyle == ResolverStyle.LENIENT) { in resolveYMD()
646 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
DMinguoChronology.java334 … public MinguoDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
335 return (MinguoDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
DThaiBuddhistChronology.java370 …c ThaiBuddhistDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
371 return (ThaiBuddhistDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
DHijrahChronology.java561 … public HijrahDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
562 return (HijrahDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
DChronology.java686 ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle); in resolveDate() argument
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java146 private ResolverStyle resolverStyle; field in Parsed
254 TemporalAccessor resolve(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in resolve() argument
258 this.resolverStyle = resolverStyle; in resolve()
283 … TemporalAccessor resolvedObject = targetField.resolve(fieldValues, this, resolverStyle); in resolveFields()
366 updateCheckConflict(chrono.resolveDate(fieldValues, resolverStyle)); in resolveDateFields()
388 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields()
396 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields()
404 if (resolverStyle == ResolverStyle.LENIENT) { in resolveTimeFields()
414 if (resolverStyle != ResolverStyle.LENIENT) { in resolveTimeFields()
424 if (resolverStyle != ResolverStyle.LENIENT) { in resolveTimeFields()
[all …]
DDateTimeFormatter.java531 private final ResolverStyle resolverStyle; field in DateTimeFormatter
1423 ResolverStyle resolverStyle, Set<TemporalField> resolverFields, in DateTimeFormatter() argument
1429 this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle"); in DateTimeFormatter()
1465 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withLocale()
1512 … return new DateTimeFormatter(printerParser, locale, ds, resolverStyle, resolverFields, c, z); in localizedBy()
1538 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withDecimalStyle()
1592 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withChronology()
1649 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withZone()
1664 return resolverStyle; in getResolverStyle()
1686 public DateTimeFormatter withResolverStyle(ResolverStyle resolverStyle) { in withResolverStyle() argument
[all …]
DDateTimeParseContext.java327 TemporalAccessor toResolved(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in toResolved() argument
331 return parsed.resolve(resolverStyle, resolverFields); in toResolved()
DDateTimeFormatterBuilder.java2317 DateTimeFormatter toFormatter(ResolverStyle resolverStyle, Chronology chrono) { in toFormatter() argument
2318 return toFormatter(Locale.getDefault(Locale.Category.FORMAT), resolverStyle, chrono); in toFormatter()
2328 …private DateTimeFormatter toFormatter(Locale locale, ResolverStyle resolverStyle, Chronology chron… in toFormatter() argument
2335 resolverStyle, null, chrono, null); in toFormatter()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java941 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
969 … return resolveWoM(fieldValues, chrono, year, month, newValue, dow, resolverStyle); in resolve()
972 return resolveWoY(fieldValues, chrono, year, newValue, dow, resolverStyle); in resolve()
977 return resolveWBY(fieldValues, chrono, dow, resolverStyle); in resolve()
983 …es, Chronology chrono, int year, long month, long wom, int localDow, ResolverStyle resolverStyle) { in resolveWoM() argument
985 if (resolverStyle == ResolverStyle.LENIENT) { in resolveWoM()
997 if (resolverStyle == ResolverStyle.STRICT && date.getLong(MONTH_OF_YEAR) != month) { in resolveWoM()
1009 …g> fieldValues, Chronology chrono, int year, long woy, int localDow, ResolverStyle resolverStyle) { in resolveWoY() argument
1011 if (resolverStyle == ResolverStyle.LENIENT) { in resolveWoY()
1020 if (resolverStyle == ResolverStyle.STRICT && date.getLong(YEAR) != year) { in resolveWoY()
[all …]
DJulianFields.java296 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
299 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
DIsoFields.java351 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
361 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
368 if (resolverStyle == ResolverStyle.STRICT) { in resolve()
490 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
500 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
513 if (resolverStyle == ResolverStyle.STRICT) { in resolve()
DTemporalField.java377 ResolverStyle resolverStyle) { in resolve() argument
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java1163 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument