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; 
        } else 
        { 
            DHPublicKeyParameters dhpublickeyparameters = (DHPublicKeyParameters)obj;
            return dhpublickeyparameters.getY().equals(y) && super.equals(obj);
        } 
    } 
 
    private BigInteger y;