public static YearWeek of(int weekBasedYear, int week) {
        WEEK_BASED_YEAR.range().checkValidValue(weekBasedYear, WEEK_BASED_YEAR);
        WEEK_OF_WEEK_BASED_YEAR.range().checkValidValue(week, WEEK_OF_WEEK_BASED_YEAR);
        if (week == 53 && weekRange(weekBasedYear) < 53) {
            week = 1;
            weekBasedYear++;
            WEEK_BASED_YEAR.range().checkValidValue(weekBasedYear, WEEK_BASED_YEAR);
        }
        return new YearWeek(weekBasedYear, week);
    }
public static YearWeek of ( int weekBasedYear , int week ) { WEEK_BASED_YEAR . range ( ) . checkValidValue ( weekBasedYear , WEEK_BASED_YEAR ) ; WEEK_OF_WEEK_BASED_YEAR . range ( ) . checkValidValue ( week , WEEK_OF_WEEK_BASED_YEAR ) ; if ( week == 53 && weekRange ( weekBasedYear ) < 53 ) { week = 1 ; weekBasedYear ++ ; WEEK_BASED_YEAR . range ( ) . checkValidValue ( weekBasedYear , WEEK_BASED_YEAR ) ; } return new YearWeek ( weekBasedYear , week ) ; }
Obtains an instance of {@code YearWeek} from a week-based-year and week.
<p>
If the week is 53 and the year does not have 53 weeks, week one of the following
year is selected.

@param weekBasedYear  the week-based-year to represent, from MIN_YEAR to MAX_YEAR
@param week  the week-of-week-based-year to represent, from 1 to 53
@return the year-week, not null
@throws DateTimeException if either field is invalid