in resources/src/main/java/org/robolectric/res/android/ResTable_config.java [1019:1063]
int compare(final ResTable_config o) {
if (imsi() != o.imsi()) {
return (imsi() > o.imsi()) ? 1 : -1;
}
int diff = compareLocales(this, o);
if (diff < 0) {
return -1;
}
if (diff > 0) {
return 1;
}
if (screenType() != o.screenType()) {
return (screenType() > o.screenType()) ? 1 : -1;
}
if (input() != o.input()) {
return (input() > o.input()) ? 1 : -1;
}
if (screenSize() != o.screenSize()) {
return (screenSize() > o.screenSize()) ? 1 : -1;
}
if (version() != o.version()) {
return (version() > o.version()) ? 1 : -1;
}
if (screenLayout != o.screenLayout) {
return (screenLayout > o.screenLayout) ? 1 : -1;
}
if (screenLayout2 != o.screenLayout2) {
return (screenLayout2 > o.screenLayout2) ? 1 : -1;
}
if (colorMode != o.colorMode) {
return (colorMode > o.colorMode) ? 1 : -1;
}
if (uiMode != o.uiMode) {
return (uiMode > o.uiMode) ? 1 : -1;
}
if (smallestScreenWidthDp != o.smallestScreenWidthDp) {
return (smallestScreenWidthDp > o.smallestScreenWidthDp) ? 1 : -1;
}
if (screenSizeDp() != o.screenSizeDp()) {
return (screenSizeDp() > o.screenSizeDp()) ? 1 : -1;
}
return 0;
}