@Test public void testToString() { assertEquals("3.5", new Version(3, 5, 0, 0).toString()); assertEquals("3.5", new Version(3, 5, 0).toString()); assertEquals("3.0", new Version(3, 0, 0).toString()); assertEquals("0.0", new Version(0, 0, 0).toString()); assertEquals("3.5.0.1", new Version(3, 5, 0, 1).toString()); assertEquals("3.0.0.1", new Version(3, 0, 0, 1).toString()); assertEquals("3.5", new Version("3.5.0.0").toString()); assertEquals("3.5b4", new Version("3.5.0b4").toString()); assertEquals("3.5", new Version("3.5.0.0").toString()); assertEquals("3.0", new Version("3.0.0").toString()); assertEquals("3.0.0.1", new Version("3.0.0.1").toString()); assertEquals("3.5.4.1", new Version("3.5.4.1").toString()); assertEquals("3.5.4.1b1", new Version("3.5.4.1b1").toString()); assertEquals("3.5.4.1b0", new Version("3.5.4.1b").toString()); assertTrue(new Version("3.5.4.1b4").isBeta()); assertTrue(new Version("3.5.4.1b").isBeta()); assertFalse(new Version("3.5.4.1").isBeta()); assertEquals("3.5.4.1rc1", new Version("3.5.4.1rc1").toString()); assertEquals("3.5.4.1rc0", new Version("3.5.4.1rc").toString()); assertTrue(new Version("3.5.4.1rc4").isReleaseCandidate()); assertTrue(new Version("3.5.4.1rc").isReleaseCandidate()); assertFalse(new Version("3.5.4.1").isReleaseCandidate()); }
@Override public String toString() { return asString; }
Version implements Comparable<Version>, Serializable { @Override public String toString() { return asString; } }
Version implements Comparable<Version>, Serializable { @Override public String toString() { return asString; } Version(final String version);  Version(final int majorRelease, final int minorRelease);  Version(final int majorRelease, final int minorRelease, final int patchLevel);  Version(final int majorRelease, final int minorRelease, final int patchLevel, final int buildNumber); }
Version implements Comparable<Version>, Serializable { @Override public String toString() { return asString; } Version(final String version);  Version(final int majorRelease, final int minorRelease);  Version(final int majorRelease, final int minorRelease, final int patchLevel);  Version(final int majorRelease, final int minorRelease, final int patchLevel, final int buildNumber); int getMajorRelease(); int getMinorRelease(); int getPatchLevel(); int getBuildNumber(); Version setBetaVersion(final int betaVersion); int getBetaVersion(); boolean isBeta(); int getReleaseCandidateVersion(); Version setReleaseCandidateVersion(final int releaseCandidateVersion); boolean isReleaseCandidate(); boolean isSnapshot(); @Override int compareTo(final Version o); @Override String toString(); }
Version implements Comparable<Version>, Serializable { @Override public String toString() { return asString; } Version(final String version);  Version(final int majorRelease, final int minorRelease);  Version(final int majorRelease, final int minorRelease, final int patchLevel);  Version(final int majorRelease, final int minorRelease, final int patchLevel, final int buildNumber); int getMajorRelease(); int getMinorRelease(); int getPatchLevel(); int getBuildNumber(); Version setBetaVersion(final int betaVersion); int getBetaVersion(); boolean isBeta(); int getReleaseCandidateVersion(); Version setReleaseCandidateVersion(final int releaseCandidateVersion); boolean isReleaseCandidate(); boolean isSnapshot(); @Override int compareTo(final Version o); @Override String toString();  }