BigInteger and(BigInteger val)
Returns a BigInteger whose value is (this & val).
BigInteger andNot(BigInteger val)
Returns a BigInteger whose value is (this & ~val).
BigInteger not()
Returns a BigInteger whose value is (~this).
BigInteger or(BigInteger val)
Returns a BigInteger whose value is (this | val).
int bitCount()
Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit.
int bitLength()
Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.
BigInteger clearBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared.
BigInteger flipBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.
int getLowestSetBit()
Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit).
BigInteger setBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.
BigInteger shiftLeft(int n)
Returns a BigInteger whose value is (this << n).
BigInteger shiftRight(int n)
Returns a BigInteger whose value is (this >> n).
boolean testBit(int n)
Returns true if and only if the designated bit is set.
BigInteger xor(BigInteger val)
Returns a BigInteger whose value is (this ^ val).