@Test public void testToString() { KylinVersion ver1 = new KylinVersion("2.1.7.321"); Assert.assertEquals(2, ver1.major); Assert.assertEquals(1, ver1.minor); Assert.assertEquals(7, ver1.revision); Assert.assertEquals(321, ver1.internal); Assert.assertEquals("2.1.7.321", ver1.toString()); }
@Override public String toString() { return "" + major + "." + minor + "." + revision + "." + internal + (isSnapshot ? "-SNAPSHOT" : ""); }
KylinVersion implements Comparable { @Override public String toString() { return "" + major + "." + minor + "." + revision + "." + internal + (isSnapshot ? "-SNAPSHOT" : ""); } }
KylinVersion implements Comparable { @Override public String toString() { return "" + major + "." + minor + "." + revision + "." + internal + (isSnapshot ? "-SNAPSHOT" : ""); } KylinVersion(String version); }
KylinVersion implements Comparable { @Override public String toString() { return "" + major + "." + minor + "." + revision + "." + internal + (isSnapshot ? "-SNAPSHOT" : ""); } KylinVersion(String version); @Override String toString(); @Override int compareTo(Object o); static KylinVersion getCurrentVersion(); static boolean isBefore200(String ver); static int compare(String v1, String v2); static void main(String[] args); boolean isCompatibleWith(KylinVersion v); boolean isSignatureCompatibleWith(final KylinVersion v); static String getKylinClientInformation(); static String getGitCommitInfo(); }
KylinVersion implements Comparable { @Override public String toString() { return "" + major + "." + minor + "." + revision + "." + internal + (isSnapshot ? "-SNAPSHOT" : ""); } KylinVersion(String version); @Override String toString(); @Override int compareTo(Object o); static KylinVersion getCurrentVersion(); static boolean isBefore200(String ver); static int compare(String v1, String v2); static void main(String[] args); boolean isCompatibleWith(KylinVersion v); boolean isSignatureCompatibleWith(final KylinVersion v); static String getKylinClientInformation(); static String getGitCommitInfo(); final int major; final int minor; final int revision; final int internal; final boolean isSnapshot; }