@Test public void equalTo() { assertTrue(ServerVersion.from(0, 0, 0).equalTo(ServerVersion.from(0, 0, 0))); assertTrue(ServerVersion.from(1, 0, 0).equalTo(ServerVersion.from(1, 0, 0))); assertTrue(ServerVersion.from(2, 0, 0).equalTo(ServerVersion.from(2, 0, 0))); assertFalse(ServerVersion.from(0, 0, 0).equalTo(ServerVersion.from(1, 0, 0))); assertFalse(ServerVersion.from(1, 0, 0).equalTo(ServerVersion.from(2, 0, 0))); assertFalse(ServerVersion.from(2, 0, 0).equalTo(ServerVersion.from(0, 0, 0))); }
public boolean equalTo(ServerVersion that) { return this.major == that.major && this.minor == that.minor && this.micro == that.micro; }
ServerVersion { public boolean equalTo(ServerVersion that) { return this.major == that.major && this.minor == that.minor && this.micro == that.micro; } }
ServerVersion { public boolean equalTo(ServerVersion that) { return this.major == that.major && this.minor == that.minor && this.micro == that.micro; } private  ServerVersion(int major, int minor, int micro); }
ServerVersion { public boolean equalTo(ServerVersion that) { return this.major == that.major && this.minor == that.minor && this.micro == that.micro; } private  ServerVersion(int major, int minor, int micro); static ServerVersion from(int major, int minor, int micro); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); ServerVersionRange upTo(ServerVersion other); ServerVersionRange upToAndIncluding(ServerVersion other); boolean equalTo(ServerVersion that); boolean lessThan(ServerVersion that); boolean lessThanOrEqualTo(ServerVersion that); boolean greaterThan(ServerVersion that); boolean greaterThanOrEqualTo(ServerVersion that); @Deprecated boolean inRange(ServerVersion min, ServerVersion max); boolean inRange(ServerVersionRange range); void assertAtLeast(ServerVersion minimum); void assertAtLeast(ServerVersion minimum, String message); }
ServerVersion { public boolean equalTo(ServerVersion that) { return this.major == that.major && this.minor == that.minor && this.micro == that.micro; } private  ServerVersion(int major, int minor, int micro); static ServerVersion from(int major, int minor, int micro); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); ServerVersionRange upTo(ServerVersion other); ServerVersionRange upToAndIncluding(ServerVersion other); boolean equalTo(ServerVersion that); boolean lessThan(ServerVersion that); boolean lessThanOrEqualTo(ServerVersion that); boolean greaterThan(ServerVersion that); boolean greaterThanOrEqualTo(ServerVersion that); @Deprecated boolean inRange(ServerVersion min, ServerVersion max); boolean inRange(ServerVersionRange range); void assertAtLeast(ServerVersion minimum); void assertAtLeast(ServerVersion minimum, String message); static final ServerVersion VERSION_0_0_0; static final ServerVersion VERSION_1_0_0; static final ServerVersion VERSION_1_1_0; static final ServerVersion VERSION_1_2_0; static final ServerVersion VERSION_1_3_0; static final ServerVersion VERSION_1_4_0; static final ServerVersion VERSION_1_5_0; static final ServerVersion VERSION_1_6_0; static final ServerVersion VERSION_1_7_0; static final ServerVersion VERSION_1_8_0; static final ServerVersion VERSION_2_0_0; static final ServerVersion VERSION_2_1_0; static final ServerVersion VERSION_2_2_0; static final ServerVersion VERSION_3_0_0; static final ServerVersion VERSION_4_0_0; static final ServerVersion VERSION_4_1_0; static final ServerVersion VERSION_4_2_0; static final ServerVersion VERSION_5_0_0; static final ServerVersion VERSION_6_0_0; static final ServerVersion VERSION_7_0_0; static final ServerVersion VERSION_8_0_0; }