VersionUtils { public static boolean equal(String version1, String version2) { Version v1 = parse(version1); Version v2 = parse(version2); return v1.equals(v2); }  static Version parse(String version); static boolean equal(String version1, String version2); static boolean gt(String version1, String version2); static boolean ge(String version1, String version2);  }
@Test public void testEqual() { Assert.assertTrue(VersionUtils.equal("1.0.1", "1.0.1")); Assert.assertTrue(VersionUtils.equal("1.0", "1.0.0")); Assert.assertTrue(VersionUtils.equal("10000.0", "10000.0.0")); }