@Test public void testHashCode() { version = new Version(0, 0, 0); assertEquals(0, version.hashCode()); }
@Override public int hashCode() { return major ^ (minor << 8) ^ (update << 16); }
Version implements Serializable, Comparable<Version> { @Override public int hashCode() { return major ^ (minor << 8) ^ (update << 16); } }
Version implements Serializable, Comparable<Version> { @Override public int hashCode() { return major ^ (minor << 8) ^ (update << 16); } Version(int major, int minor, int update); }
Version implements Serializable, Comparable<Version> { @Override public int hashCode() { return major ^ (minor << 8) ^ (update << 16); } Version(int major, int minor, int update); static Version parseString(String version); boolean isGreaterThan(Version version); boolean isGreaterOrEqualThan(Version version); boolean isEqualTo(Version version); int getMinorVersion(); int getMajorVersion(); int getUpdateVersion(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object object); @Override int compareTo(Version v); }
Version implements Serializable, Comparable<Version> { @Override public int hashCode() { return major ^ (minor << 8) ^ (update << 16); } Version(int major, int minor, int update); static Version parseString(String version); boolean isGreaterThan(Version version); boolean isGreaterOrEqualThan(Version version); boolean isEqualTo(Version version); int getMinorVersion(); int getMajorVersion(); int getUpdateVersion(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object object); @Override int compareTo(Version v); static final Version ZERO; static final Version MIN; static final Version MAX; }