code: public YearQuarter withQuarter(int quarter) {
          QUARTER_OF_YEAR.range().checkValidValue(quarter, QUARTER_OF_YEAR);
          return with(year, Quarter.of(quarter));
      }
docs: Returns a copy of this {@code YearQuarter} with the quarter-of-year altered.
  <p>
  This instance is immutable and unaffected by this method call.
  
  @param quarter  the quarter-of-year to set in the returned year-quarter, from 1 to 4
  @return a {@code YearQuarter} based on this year-quarter with the requested quarter, not null
  @throws DateTimeException if the quarter-of-year value is invalid