code: public YearMonthDay withYear(int year) {
          int[] newValues = getValues();
          newValues = getChronology().year().set(this, YEAR, newValues, year);
          return new YearMonthDay(this, newValues);
      }
docs: Returns a copy of this date with the year field updated.
  <p>
  YearMonthDay is immutable, so there are no set methods.
  Instead, this method returns a new instance with the value of
  year changed.
  
  @param year  the year to set
  @return a copy of this object with the field set
  @throws IllegalArgumentException if the value is invalid
  @since 1.3