Code example for BigInteger

Methods: hashCode

0
        return validation;
    } 
 
    public int hashCode() 
    { 
        return p.hashCode() ^ q.hashCode() ^ a.hashCode();
    } 
 
    public boolean equals( 
        Object  obj)
    { 
        if (!(obj instanceof GOST3410Parameters))
        { 
            return false; 
        } 
 
        GOST3410Parameters    pm = (GOST3410Parameters)obj;
 
        return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getA().equals(a));
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE