XFSUtils { public static int getVersionsRequired(String lowestVersion, String highestVersion) { int versionsRequired = getVersion(lowestVersion); versionsRequired <<= 16; versionsRequired |= getVersion(highestVersion); return versionsRequired; }  static int getVersionsRequired(String lowestVersion, String highestVersion); static int getVersion(String version); static String getVersionAsString(int i);  }
@Test public void testGetVersionsRequired() { assertEquals(0x00010A02, XFSUtils.getVersionsRequired("1", "2.10")); assertEquals(0x0B020003, XFSUtils.getVersionsRequired("2.11", "3.0")); assertEquals(0x0B010003, XFSUtils.getVersionsRequired("1.11", "3")); }