The list of methods to do BigInteger Parse are organized into topic(s).
BigInteger
getBigInteger(Number number) get Big Integer
BigInteger bigInteger = null;
if (isByteShortIntegerOrLong(number)) {
bigInteger = BigInteger.valueOf(number.longValue());
} else if (isFloatOrDouble(number)) {
bigInteger = new BigDecimal(number.doubleValue()).toBigInteger();
} else if (number instanceof BigInteger) {
bigInteger = (BigInteger) number;
} else if (number instanceof BigDecimal) {
...
BigInteger
getBigInteger(Number value) Utility method used to convert a Number into a BigInteger.
BigInteger result = null;
if (value != null) {
if (value instanceof BigInteger) {
result = (BigInteger) value;
} else {
result = BigInteger.valueOf(Math.round(value.doubleValue()));
return (result);
BigInteger
getBigInteger(String value) Get big integer from a string.
BigInteger bint = null;
try {
bint = new BigInteger(value);
} catch (NumberFormatException e) {
return null;
return bint;
BigInteger[]
getBigIntegerArrayFromByteArray(byte[] buf) Convert a byte[] into an instance of our value class.
long[] d = getLongArrayFromByteArray(buf);
BigInteger[] a = new BigInteger[d.length];
for (int i = 0; i < a.length; i++) {
a[i] = BigInteger.valueOf(d[i]);
return a;
BigInteger
getBigIntegerValue(final Integer value) Returns the BigInteger value of the Integer value passed if the value passed is not null, otherwise returns null.
BigInteger result = null;
if (value != null) {
result = BigInteger.valueOf(value);
return result;
BigInteger
toBigInteger(String bigInteger) Wandelt einen String in einen BigInteger um
if (null == bigInteger)
return null;
BigInteger value = null;
try {
value = new BigInteger(bigInteger);
} catch (NumberFormatException e) {
return value;
...