Lines Matching refs:code
5 * This code is free software; you can redistribute it and/or modify it
9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
15 * accompanied this code).
40 private volatile int code;
69 * @return {@code true} if this object is the same as the
70 * {@code object} argument, {@code false} otherwise
89 * This method supports {@code null} values.
93 * @return {@code true} if first object is the same as the second object,
94 * {@code false} otherwise
104 * This method supports {@code null} values.
108 * @return {@code true} if first array is the same as the second array,
109 * {@code false} otherwise
127 * Returns a hash code value for the object.
130 * Hash code computed using algorithm
133 * @return a hash code value for this object
138 if (this.code == 0) {
139 int code = 17;
140 code = addHashCode(code, this.type);
141 code = addHashCode(code, this.name);
145 code = addHashCode(code, arg);
148 this.code = code;
150 return this.code;
154 * Adds hash code value if specified object.
158 * @param code current hash code value
159 * @param object object that updates hash code value
160 * @return updated hash code value
163 private static int addHashCode(int code, Object object) {
164 code *= 37;
166 ? code + object.hashCode()
167 : code;