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 DHPublicKeyParameters))
        { 
            return false; 
        } 
 
        DHPublicKeyParameters   other = (DHPublicKeyParameters)obj;
 
        return other.getY().equals(y) && super.equals(obj);
    } 
}