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.java453 …ic ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
460 resolveProlepticMonth(fieldValues, resolverStyle); in resolveDate()
463 ChronoLocalDate resolved = resolveYearOfEra(fieldValues, resolverStyle); in resolveDate()
472 return resolveYMD(fieldValues, resolverStyle); in resolveDate()
476 return resolveYMAA(fieldValues, resolverStyle); in resolveDate()
479 return resolveYMAD(fieldValues, resolverStyle); in resolveDate()
484 return resolveYD(fieldValues, resolverStyle); in resolveDate()
488 return resolveYAA(fieldValues, resolverStyle); in resolveDate()
491 return resolveYAD(fieldValues, resolverStyle); in resolveDate()
498 void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveProlepticMonth() argument
[all …]
DIsoChronology.java491 … 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
499 if (resolverStyle != ResolverStyle.LENIENT) { in resolveProlepticMonth()
508 LocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYearOfEra() argument
511 if (resolverStyle != ResolverStyle.LENIENT) { in resolveYearOfEra()
517 if (resolverStyle == ResolverStyle.STRICT) { in resolveYearOfEra()
543 LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYMD() argument
545 if (resolverStyle == ResolverStyle.LENIENT) { in resolveYMD()
552 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
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 …]
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()
DChronology.java674 ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle); in resolveDate() argument
DHijrahChronology.java605 … public HijrahDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveDate() argument
606 return (HijrahDate) super.resolveDate(fieldValues, resolverStyle); in resolveDate()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java145 private ResolverStyle resolverStyle; field in Parsed
239 TemporalAccessor resolve(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in resolve() argument
243 this.resolverStyle = resolverStyle; in resolve()
268 … TemporalAccessor resolvedObject = targetField.resolve(fieldValues, this, resolverStyle); in resolveFields()
351 updateCheckConflict(chrono.resolveDate(fieldValues, resolverStyle)); in resolveDateFields()
373 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields()
381 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields()
389 if (resolverStyle == ResolverStyle.LENIENT) { in resolveTimeFields()
399 if (resolverStyle != ResolverStyle.LENIENT) { in resolveTimeFields()
409 if (resolverStyle != ResolverStyle.LENIENT) { in resolveTimeFields()
[all …]
DDateTimeFormatter.java500 private final ResolverStyle resolverStyle; field in DateTimeFormatter
1374 ResolverStyle resolverStyle, Set<TemporalField> resolverFields, in DateTimeFormatter() argument
1380 this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle"); in DateTimeFormatter()
1413 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withLocale()
1438 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withDecimalStyle()
1492 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withChronology()
1549 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withZone()
1564 return resolverStyle; in getResolverStyle()
1586 public DateTimeFormatter withResolverStyle(ResolverStyle resolverStyle) { in withResolverStyle() argument
1587 Objects.requireNonNull(resolverStyle, "resolverStyle"); in withResolverStyle()
[all …]
DDateTimeParseContext.java327 TemporalAccessor toResolved(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in toResolved() argument
331 return parsed.resolve(resolverStyle, resolverFields); in toResolved()
DDateTimeFormatterBuilder.java2067 DateTimeFormatter toFormatter(ResolverStyle resolverStyle, Chronology chrono) { in toFormatter() argument
2068 return toFormatter(Locale.getDefault(Locale.Category.FORMAT), resolverStyle, chrono); in toFormatter()
2078 …private DateTimeFormatter toFormatter(Locale locale, ResolverStyle resolverStyle, Chronology chron… in toFormatter() argument
2085 resolverStyle, null, chrono, null); in toFormatter()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java916 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
944 … return resolveWoM(fieldValues, chrono, year, month, newValue, dow, resolverStyle); in resolve()
947 return resolveWoY(fieldValues, chrono, year, newValue, dow, resolverStyle); in resolve()
952 return resolveWBY(fieldValues, chrono, dow, resolverStyle); in resolve()
958 …es, Chronology chrono, int year, long month, long wom, int localDow, ResolverStyle resolverStyle) { in resolveWoM() argument
960 if (resolverStyle == ResolverStyle.LENIENT) { in resolveWoM()
972 if (resolverStyle == ResolverStyle.STRICT && date.getLong(MONTH_OF_YEAR) != month) { in resolveWoM()
984 …g> fieldValues, Chronology chrono, int year, long woy, int localDow, ResolverStyle resolverStyle) { in resolveWoY() argument
986 if (resolverStyle == ResolverStyle.LENIENT) { in resolveWoY()
995 if (resolverStyle == ResolverStyle.STRICT && date.getLong(YEAR) != year) { in resolveWoY()
[all …]
DJulianFields.java292 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
295 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
DIsoFields.java344 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
354 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
361 if (resolverStyle == ResolverStyle.STRICT) { in resolve()
468 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument
478 if (resolverStyle == ResolverStyle.LENIENT) { in resolve()
491 if (resolverStyle == ResolverStyle.STRICT) { in resolve()
DTemporalField.java377 ResolverStyle resolverStyle) { in resolve() argument
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java1159 …<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { in resolve() argument