bool isComparable(String units1, String units2) { final String u1 = getCanonicalUnits(units1); final String u2 = getCanonicalUnits(units2); return u1 == u2; }