Java Code Examples for java.time.format.ResolverStyle#LENIENT
The following examples show how to use
java.time.format.ResolverStyle#LENIENT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TCKResolverStyle.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="resolverStyle") Object[][] data_resolverStyle() { return new Object[][] { {"2000/15/30", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30", ResolverStyle.SMART, null, 2000, 2, 29}, {"2000/02/29", ResolverStyle.STRICT, null, 2000, 2, 29}, {"2000/15/30 CE", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30 CE", ResolverStyle.SMART, null, 2000, 2, 29}, {"5/02/29 BCE", ResolverStyle.STRICT, null, 5, 2, 29}, {"4/02/29 BCE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, {"2000/02/30 CE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, }; }
Example 2
Source File: IsoChronology.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override // override for performance LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); } int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); if (resolverStyle == ResolverStyle.SMART) { // previous valid if (moy == 4 || moy == 6 || moy == 9 || moy == 11) { dom = Math.min(dom, 30); } else if (moy == 2) { dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); } } return LocalDate.of(y, moy, dom); }
Example 3
Source File: IsoChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override // override for performance LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); } int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); if (resolverStyle == ResolverStyle.SMART) { // previous valid if (moy == 4 || moy == 6 || moy == 9 || moy == 11) { dom = Math.min(dom, 30); } else if (moy == 2) { dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); } } return LocalDate.of(y, moy, dom); }
Example 4
Source File: IsoChronology.java From desugar_jdk_libs with GNU General Public License v2.0 | 6 votes |
@Override // override for performance LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math8.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math8.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); } int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); if (resolverStyle == ResolverStyle.SMART) { // previous valid if (moy == 4 || moy == 6 || moy == 9 || moy == 11) { dom = Math.min(dom, 30); } else if (moy == 2) { dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); } } return LocalDate.of(y, moy, dom); }
Example 5
Source File: JulianFields.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public ChronoLocalDate resolve( Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { long value = fieldValues.remove(this); Chronology chrono = Chronology.from(partialTemporal); if (resolverStyle == ResolverStyle.LENIENT) { return chrono.dateEpochDay(Math.subtractExact(value, offset)); } range().checkValidValue(value, this); return chrono.dateEpochDay(value - offset); }
Example 6
Source File: JulianFields.java From JDKSourceCode1.8 with MIT License | 5 votes |
@Override public ChronoLocalDate resolve( Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { long value = fieldValues.remove(this); Chronology chrono = Chronology.from(partialTemporal); if (resolverStyle == ResolverStyle.LENIENT) { return chrono.dateEpochDay(Math.subtractExact(value, offset)); } range().checkValidValue(value, this); return chrono.dateEpochDay(value - offset); }
Example 7
Source File: AbstractChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
ChronoLocalDate resolveYD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); return dateYearDay(y, 1).plus(days, DAYS); } int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); return dateYearDay(y, doy); // smart is same as strict }
Example 8
Source File: AbstractChronology.java From JDKSourceCode1.8 with MIT License | 5 votes |
void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); if (pMonth != null) { if (resolverStyle != ResolverStyle.LENIENT) { PROLEPTIC_MONTH.checkValidValue(pMonth); } // first day-of-month is likely to be safest for setting proleptic-month // cannot add to year zero, as not all chronologies have a year zero ChronoLocalDate chronoDate = dateNow() .with(DAY_OF_MONTH, 1).with(PROLEPTIC_MONTH, pMonth); addFieldValue(fieldValues, MONTH_OF_YEAR, chronoDate.get(MONTH_OF_YEAR)); addFieldValue(fieldValues, YEAR, chronoDate.get(YEAR)); } }
Example 9
Source File: AbstractChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); if (pMonth != null) { if (resolverStyle != ResolverStyle.LENIENT) { PROLEPTIC_MONTH.checkValidValue(pMonth); } // first day-of-month is likely to be safest for setting proleptic-month // cannot add to year zero, as not all chronologies have a year zero ChronoLocalDate chronoDate = dateNow() .with(DAY_OF_MONTH, 1).with(PROLEPTIC_MONTH, pMonth); addFieldValue(fieldValues, MONTH_OF_YEAR, chronoDate.get(MONTH_OF_YEAR)); addFieldValue(fieldValues, YEAR, chronoDate.get(YEAR)); } }
Example 10
Source File: JapaneseChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private ChronoLocalDate resolveYD(JapaneseEra era, int yoe, Map <TemporalField,Long> fieldValues, ResolverStyle resolverStyle) { fieldValues.remove(ERA); fieldValues.remove(YEAR_OF_ERA); if (resolverStyle == ResolverStyle.LENIENT) { int y = prolepticYearLenient(era, yoe); long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); return dateYearDay(y, 1).plus(days, DAYS); } int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); return dateYearDay(era, yoe, doy); // smart is same as strict }
Example 11
Source File: IsoFields.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public ChronoLocalDate resolve( Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { Long yearLong = fieldValues.get(YEAR); Long qoyLong = fieldValues.get(QUARTER_OF_YEAR); if (yearLong == null || qoyLong == null) { return null; } int y = YEAR.checkValidIntValue(yearLong); // always validate long doq = fieldValues.get(DAY_OF_QUARTER); ensureIso(partialTemporal); LocalDate date; if (resolverStyle == ResolverStyle.LENIENT) { date = LocalDate.of(y, 1, 1).plusMonths(Math.multiplyExact(Math.subtractExact(qoyLong, 1), 3)); doq = Math.subtractExact(doq, 1); } else { int qoy = QUARTER_OF_YEAR.range().checkValidIntValue(qoyLong, QUARTER_OF_YEAR); // validated date = LocalDate.of(y, ((qoy - 1) * 3) + 1, 1); if (doq < 1 || doq > 90) { if (resolverStyle == ResolverStyle.STRICT) { rangeRefinedBy(date).checkValidValue(doq, this); // only allow exact range } else { // SMART range().checkValidValue(doq, this); // allow 1-92 rolling into next quarter } } doq--; } fieldValues.remove(this); fieldValues.remove(YEAR); fieldValues.remove(QUARTER_OF_YEAR); return date.plusDays(doq); }
Example 12
Source File: JulianFields.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public ChronoLocalDate resolve( Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { long value = fieldValues.remove(this); Chronology chrono = Chronology.from(partialTemporal); if (resolverStyle == ResolverStyle.LENIENT) { return chrono.dateEpochDay(Math.subtractExact(value, offset)); } range().checkValidValue(value, this); return chrono.dateEpochDay(value - offset); }
Example 13
Source File: AbstractChronology.java From JDKSourceCode1.8 with MIT License | 5 votes |
ChronoLocalDate resolveYD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); return dateYearDay(y, 1).plus(days, DAYS); } int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); return dateYearDay(y, doy); // smart is same as strict }
Example 14
Source File: AbstractChronology.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
ChronoLocalDate resolveYD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); return dateYearDay(y, 1).plus(days, DAYS); } int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); return dateYearDay(y, doy); // smart is same as strict }
Example 15
Source File: IsoChronology.java From desugar_jdk_libs with GNU General Public License v2.0 | 5 votes |
@Override // override for enhanced behaviour LocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { Long yoeLong = fieldValues.remove(YEAR_OF_ERA); if (yoeLong != null) { if (resolverStyle != ResolverStyle.LENIENT) { YEAR_OF_ERA.checkValidValue(yoeLong); } Long era = fieldValues.remove(ERA); if (era == null) { Long year = fieldValues.get(YEAR); if (resolverStyle == ResolverStyle.STRICT) { // do not invent era if strict, but do cross-check with year if (year != null) { addFieldValue(fieldValues, YEAR, (year > 0 ? yoeLong: Math8.subtractExact(1, yoeLong))); } else { // reinstate the field removed earlier, no cross-check issues fieldValues.put(YEAR_OF_ERA, yoeLong); } } else { // invent era addFieldValue(fieldValues, YEAR, (year == null || year > 0 ? yoeLong: Math8.subtractExact(1, yoeLong))); } } else if (era.longValue() == 1L) { addFieldValue(fieldValues, YEAR, yoeLong); } else if (era.longValue() == 0L) { addFieldValue(fieldValues, YEAR, Math8.subtractExact(1, yoeLong)); } else { throw new DateTimeException("Invalid value for era: " + era); } } else if (fieldValues.containsKey(ERA)) { ERA.checkValidValue(fieldValues.get(ERA)); // always validated } return null; }
Example 16
Source File: IsoChronology.java From JDKSourceCode1.8 with MIT License | 5 votes |
@Override // override for enhanced behaviour LocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { Long yoeLong = fieldValues.remove(YEAR_OF_ERA); if (yoeLong != null) { if (resolverStyle != ResolverStyle.LENIENT) { YEAR_OF_ERA.checkValidValue(yoeLong); } Long era = fieldValues.remove(ERA); if (era == null) { Long year = fieldValues.get(YEAR); if (resolverStyle == ResolverStyle.STRICT) { // do not invent era if strict, but do cross-check with year if (year != null) { addFieldValue(fieldValues, YEAR, (year > 0 ? yoeLong: Math.subtractExact(1, yoeLong))); } else { // reinstate the field removed earlier, no cross-check issues fieldValues.put(YEAR_OF_ERA, yoeLong); } } else { // invent era addFieldValue(fieldValues, YEAR, (year == null || year > 0 ? yoeLong: Math.subtractExact(1, yoeLong))); } } else if (era.longValue() == 1L) { addFieldValue(fieldValues, YEAR, yoeLong); } else if (era.longValue() == 0L) { addFieldValue(fieldValues, YEAR, Math.subtractExact(1, yoeLong)); } else { throw new DateTimeException("Invalid value for era: " + era); } } else if (fieldValues.containsKey(ERA)) { ERA.checkValidValue(fieldValues.get(ERA)); // always validated } return null; }
Example 17
Source File: IsoFields.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public ChronoLocalDate resolve( Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) { Long yearLong = fieldValues.get(YEAR); Long qoyLong = fieldValues.get(QUARTER_OF_YEAR); if (yearLong == null || qoyLong == null) { return null; } int y = YEAR.checkValidIntValue(yearLong); // always validate long doq = fieldValues.get(DAY_OF_QUARTER); ensureIso(partialTemporal); LocalDate date; if (resolverStyle == ResolverStyle.LENIENT) { date = LocalDate.of(y, 1, 1).plusMonths(Math.multiplyExact(Math.subtractExact(qoyLong, 1), 3)); doq = Math.subtractExact(doq, 1); } else { int qoy = QUARTER_OF_YEAR.range().checkValidIntValue(qoyLong, QUARTER_OF_YEAR); // validated date = LocalDate.of(y, ((qoy - 1) * 3) + 1, 1); if (doq < 1 || doq > 90) { if (resolverStyle == ResolverStyle.STRICT) { rangeRefinedBy(date).checkValidValue(doq, this); // only allow exact range } else { // SMART range().checkValidValue(doq, this); // allow 1-92 rolling into next quarter } } doq--; } fieldValues.remove(this); fieldValues.remove(YEAR); fieldValues.remove(QUARTER_OF_YEAR); return date.plusDays(doq); }
Example 18
Source File: IsoChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override // override for better proleptic algorithm void resolveProlepticMonth(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); if (pMonth != null) { if (resolverStyle != ResolverStyle.LENIENT) { PROLEPTIC_MONTH.checkValidValue(pMonth); } addFieldValue(fieldValues, MONTH_OF_YEAR, Math.floorMod(pMonth, 12) + 1); addFieldValue(fieldValues, YEAR, Math.floorDiv(pMonth, 12)); } }
Example 19
Source File: TCKIsoChronology.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 20
Source File: TCKMinguoChronology.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }