jdk/src/share/classes/java/security/spec/EllipticCurve.java
changeset 18156 edb590d448c5
parent 9556 79c47f5e241b
child 18552 005e115dc6ee
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
   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));