io.sarl.lang.core.scoping.extensions.numbers.cast
Class BigIntegerCastExtensions
final class BigIntegerCastExtensions
extends java.lang.Object
Provide static functions related to the casting of numbers of type BigInteger.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.9
Action Summary
Modifier and type Action and description
static com.google.common.util.concurrent.AtomicDouble toAtomicDouble(BigInteger)
Convert the given value to AtomicDouble.
static java.util.concurrent.atomic.AtomicInteger toAtomicInteger(BigInteger)
Convert the given value to AtomicInteger.
static java.util.concurrent.atomic.AtomicLong toAtomicLong(BigInteger)
Convert the given value to AtomicLong.
static java.math.BigDecimal toBigDecimal(BigInteger)
Convert the given value to BigDecimal.
Action Details
toAtomicDouble(BigInteger)
def toAtomicDouble(BigInteger) : com.google.common.util.concurrent.AtomicDouble
Convert the given value to AtomicDouble. This function is not null-safe.
Parameters:
number - a number of BigInteger type.
Returns:
the equivalent value to number of AtomicDouble type.
toAtomicInteger(BigInteger)
def toAtomicInteger(BigInteger) : java.util.concurrent.atomic.AtomicInteger
Convert the given value to AtomicInteger. This function is not null-safe.
Parameters:
number - a number of BigInteger type.
Returns:
the equivalent value to number of AtomicInteger type.
toAtomicLong(BigInteger)
def toAtomicLong(BigInteger) : java.util.concurrent.atomic.AtomicLong
Convert the given value to AtomicLong. This function is not null-safe.
Parameters:
number - a number of BigInteger type.
Returns:
the equivalent value to number of AtomicLong type.
toBigDecimal(BigInteger)
def toBigDecimal(BigInteger) : java.math.BigDecimal
Convert the given value to BigDecimal.
Parameters:
number - a number of BigInteger type.
Returns:
the equivalent value to number of BigDecimal type.