@Test public void testEqualsMajorMinor() { Assert.assertTrue(PROTOCOL_VERSION_0_0.equals(0, 0)); Assert.assertTrue(PROTOCOL_VERSION_1_0.equals(1, 0)); Assert.assertTrue(PROTOCOL_VERSION_1_2.equals(1, 2)); Assert.assertFalse(PROTOCOL_VERSION_1_2.equals(2, 0)); }
public final boolean equals(final int major, final int minor) { return this.major == major && this.minor == minor; }
ProtocolVersion implements Serializable { public final boolean equals(final int major, final int minor) { return this.major == major && this.minor == minor; } }
ProtocolVersion implements Serializable { public final boolean equals(final int major, final int minor) { return this.major == major && this.minor == minor; } ProtocolVersion(final String protocol, final int major, final int minor); }
ProtocolVersion implements Serializable { public final boolean equals(final int major, final int minor) { return this.major == major && this.minor == minor; } ProtocolVersion(final String protocol, final int major, final int minor); final String getProtocol(); final int getMajor(); final int getMinor(); @Override final int hashCode(); final boolean equals(final int major, final int minor); @Override final boolean equals(final Object obj); String format(); boolean isComparable(final ProtocolVersion that); int compareToVersion(final ProtocolVersion that); final boolean greaterEquals(final ProtocolVersion version); final boolean lessEquals(final ProtocolVersion version); @Override String toString(); }
ProtocolVersion implements Serializable { public final boolean equals(final int major, final int minor) { return this.major == major && this.minor == minor; } ProtocolVersion(final String protocol, final int major, final int minor); final String getProtocol(); final int getMajor(); final int getMinor(); @Override final int hashCode(); final boolean equals(final int major, final int minor); @Override final boolean equals(final Object obj); String format(); boolean isComparable(final ProtocolVersion that); int compareToVersion(final ProtocolVersion that); final boolean greaterEquals(final ProtocolVersion version); final boolean lessEquals(final ProtocolVersion version); @Override String toString();  }