/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (null == other) { return false; } else if (this == other) { return true; } else if (!(other instanceof ProtocolVersion)) { return false; } ProtocolVersion otherVer = (ProtocolVersion) other; if (!checkEquality(mProtocol, otherVer.mProtocol)) { return false; } return getMajorVersion() == otherVer.getMajorVersion() && getMinorVersion() == otherVer.getMinorVersion() && getRevision() == otherVer.getRevision(); }