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