Lines Matching full:major
47 * protocol name, major version number, and minor version number.
69 /** Major version number of the protocol */
70 protected final int major; field in ProtocolVersion
80 * @param major the major version number of the protocol
83 public ProtocolVersion(String protocol, int major, int minor) { in ProtocolVersion() argument
88 if (major < 0) { in ProtocolVersion()
90 ("Protocol major version number must not be negative."); in ProtocolVersion()
97 this.major = major; in ProtocolVersion()
111 * Returns the major version number of the protocol.
113 * @return the major version number.
116 return major; in getMajor()
138 * @param major the major version
144 public ProtocolVersion forVersion(int major, int minor) { in forVersion() argument
146 if ((major == this.major) && (minor == this.minor)) { in forVersion()
151 return new ProtocolVersion(this.protocol, major, minor); in forVersion()
161 return this.protocol.hashCode() ^ (this.major * 100000) ^ this.minor; in hashCode()
168 * protocol name, major version number, and minor version number.
188 (this.major == that.major) && in equals()
282 buffer.append(Integer.toString(this.major)); in toString()