resources/src/main/java/org/robolectric/res/android/ResTable_config.java
public final ResTable_config withSdkVersion(int sdkVersion) {
    if (sdkVersion == this.sdkVersion) {
      return this;
    }
    return new ResTable_config(size, mcc, mnc, language, country,
        orientation, touchscreen, density, keyboard, navigation, inputFlags,
        screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode,
        smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript, localeVariant,
        screenLayout2, colorMode, screenConfigPad2, unknown);
  }
public final ResTable_config withSdkVersion(int sdkVersion) {
    if (sdkVersion == this.sdkVersion) {
      return this;
    }
    return new ResTable_config(size, mcc, mnc, language, country,
        orientation, touchscreen, density, keyboard, navigation, inputFlags,
        screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode,
        smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript, localeVariant,
        screenLayout2, colorMode, screenConfigPad2, unknown);
  }
Returns a copy of this resource configuration with a different {@link #sdkVersion}, or this
configuration if the {@code sdkVersion} is the same.

@param sdkVersion The SDK version of the returned configuration.
@return A copy of this configuration with the only difference being #sdkVersion.