Skip to content

Commit 439dacb

Browse files
DeviceInfracopybara-github
DeviceInfra
authored andcommitted
Internal change
PiperOrigin-RevId: 739870930
1 parent c8d337e commit 439dacb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/java/com/google/devtools/mobileharness/shared/util/dimension/ValueComparator.java

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public final class ValueComparator {
2727
/** Dimension value prefix which indicates it is an int value comparison. */
2828
public static final String PREFIX_INT_COMPARISON = "compare_int:";
2929

30+
/** Returns true if the dimension value is a comparison. */
31+
public static boolean isComparison(String dimensionValue) {
32+
return dimensionValue.startsWith(PREFIX_STR_COMPARISON)
33+
|| dimensionValue.startsWith(PREFIX_INT_COMPARISON);
34+
}
35+
3036
/**
3137
* Compares the size relationship between the actual dimension value and the * value specified by
3238
* the user.

0 commit comments

Comments
 (0)