List of utility methods to do BigInteger From
BigInteger | toBigInteger(@Nullable final Boolean value, @Nullable final BigInteger defaultValue) to Big Integer return (value == null ? defaultValue : toBigInteger(value.booleanValue()));
|
BigInteger | toBigInteger(@Nullable final byte[] value) to Big Integer return toBigInteger(value, null);
|
BigInteger | ToBigInteger(BitSet bs) Convert a bitset to a BigInteger. BigInteger value = BigInteger.ZERO; for (int i = 0; i < bs.length(); i += 1) { if (bs.get(i)) value = value.setBit(i); return value; |
BigInteger | toBigIntegerFromHex(String val) Parses 0x representation of the BigInteger from string BigInteger n = new BigInteger(val.replace("0x", ""), 16); return n; |