equal
deleted
inserted
replaced
182 |
182 |
183 /** |
183 /** |
184 * Returns a hash code value for this elliptic curve. |
184 * Returns a hash code value for this elliptic curve. |
185 * @return a hash code value computed from the hash codes of the field, A, |
185 * @return a hash code value computed from the hash codes of the field, A, |
186 * and B, as follows: |
186 * and B, as follows: |
187 * <code> |
187 * <pre>{@code |
188 * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2) |
188 * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2) |
189 * </code> |
189 * }</pre> |
190 */ |
190 */ |
191 public int hashCode() { |
191 public int hashCode() { |
192 return (field.hashCode() << 6 + |
192 return (field.hashCode() << 6 + |
193 (a.hashCode() << 4) + |
193 (a.hashCode() << 4) + |
194 (b.hashCode() << 2)); |
194 (b.hashCode() << 2)); |