src/share/classes/java/security/spec/EllipticCurve.java

Print this page

        

*** 182,194 **** /** * Returns a hash code value for this elliptic curve. * @return a hash code value computed from the hash codes of the field, A, * and B, as follows: ! * <code> * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2) ! * </code> */ public int hashCode() { return (field.hashCode() << 6 + (a.hashCode() << 4) + (b.hashCode() << 2)); --- 182,194 ---- /** * Returns a hash code value for this elliptic curve. * @return a hash code value computed from the hash codes of the field, A, * and B, as follows: ! * <pre>{@code * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2) ! * }</pre> */ public int hashCode() { return (field.hashCode() << 6 + (a.hashCode() << 4) + (b.hashCode() << 2));