Code example for BigInteger

Methods: hashCode

0
        return y;
    } 
 
    public int hashCode() 
    { 
        return y.hashCode() ^ super.hashCode();
    } 
 
    public boolean equals( 
        Object  obj)
    { 
        if (!(obj instanceof ElGamalPublicKeyParameters))
        { 
            return false; 
        } 
 
        ElGamalPublicKeyParameters   other = (ElGamalPublicKeyParameters)obj;
 
        return other.getY().equals(y) && super.equals(obj);
    }