Here you can find the source of toBigInteger(long value)
Parameter | Description |
---|---|
value | a parameter |
public static BigInteger toBigInteger(long value)
//package com.java2s; import java.math.BigInteger; public class Main { /**/*from w w w .ja va 2 s .c om*/ * @param value * @return */ public static BigInteger toBigInteger(long value) { return new BigInteger(String.valueOf(value)); } public static BigInteger toBigInteger(Integer integer) { if (integer == null) return null; return new BigInteger(integer.toString()); } }