BigInteger.valueOf

Returns a BigInteger whose value is equal to that of the specified {@code long}.

@apiNote This static factory method is provided in preference to a ({@code long}) constructor because it allows for reuse of frequently used BigIntegers.

@param val value of the BigInteger to return. @return a BigInteger with the specified value.

class BigInteger
static
valueOf
(
long val
)

Meta