Here you can find the source of ToBigInteger(String s)
private static final BigInteger ToBigInteger(String s)
//package com.java2s; //License from project: Apache License import java.math.BigInteger; public class Main { private static final BigInteger ToBigInteger(String s) { if (ToString(s).isEmpty()) { return null; }//from www . j av a 2 s .c o m return new BigInteger(ToString(s)); } public static final BigInteger ToBigInteger(Object o) { return ToBigInteger(ToString(o)); } public static final String ToString(Object o) { return o != null ? o.toString() : ""; } public static final String ToString(String s) { return s != null ? s : ""; } }