public BigInteger andNot (BigInteger val)

Returns a BigInteger whose value is (this & ~val). This method, which is equivalent to and(val.not()), is provided as a convenience for masking operations. (This method returns a negative BigInteger if and only if this is negative and val is positive.)

Parameters:
val    value to be complemented and AND'ed with this BigInteger.

Returns:  this & ~val