@Test public void equalAlphas() { Assert.assertTrue(Version.compare(" 1.2 Alpha", "1.2.0.0alpha1 ") == 0); }
public static int compare(String oneVersion, String anotherVersion) { return new Version(oneVersion).compareTo(new Version(anotherVersion)); }
Version implements Comparable<Object> { public static int compare(String oneVersion, String anotherVersion) { return new Version(oneVersion).compareTo(new Version(anotherVersion)); } }
Version implements Comparable<Object> { public static int compare(String oneVersion, String anotherVersion) { return new Version(oneVersion).compareTo(new Version(anotherVersion)); } Version(String version); }
Version implements Comparable<Object> { public static int compare(String oneVersion, String anotherVersion) { return new Version(oneVersion).compareTo(new Version(anotherVersion)); } Version(String version); boolean isAlpha(); boolean isBeta(); boolean isFinal(); int getMajor(); int getMinor(); int getRevision(); int getBuild(); @Override String toString(); int compareTo(Object o); static int compare(String oneVersion, String anotherVersion); static boolean isBeta(String version); static boolean isFinal(String version); }
Version implements Comparable<Object> { public static int compare(String oneVersion, String anotherVersion) { return new Version(oneVersion).compareTo(new Version(anotherVersion)); } Version(String version); boolean isAlpha(); boolean isBeta(); boolean isFinal(); int getMajor(); int getMinor(); int getRevision(); int getBuild(); @Override String toString(); int compareTo(Object o); static int compare(String oneVersion, String anotherVersion); static boolean isBeta(String version); static boolean isFinal(String version);  }