io.sarl.lang.core.scoping.extensions.numbers.cast
Class BigDecimalCastExtensions
final class BigDecimalCastExtensions
extends java.lang.Object
Provide static functions related to the casting of numbers of type BigDecimal.
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(BigDecimal)
Convert the given value to AtomicDouble.
static java.util.concurrent.atomic.AtomicInteger toAtomicInteger(BigDecimal)
Convert the given value to AtomicInteger.
static java.util.concurrent.atomic.AtomicLong toAtomicLong(BigDecimal)
Convert the given value to AtomicLong.
Action Details
toAtomicDouble(BigDecimal)
def toAtomicDouble(BigDecimal) : com.google.common.util.concurrent.AtomicDouble
Convert the given value to AtomicDouble. This function is not null-safe.
Parameters:
number - a number of BigDecimal type.
Returns:
the equivalent value to number of AtomicDouble type.
toAtomicInteger(BigDecimal)
def toAtomicInteger(BigDecimal) : java.util.concurrent.atomic.AtomicInteger
Convert the given value to AtomicInteger. This function is not null-safe.
Parameters:
number - a number of BigDecimal type.
Returns:
the equivalent value to number of AtomicInteger type.
toAtomicLong(BigDecimal)
def toAtomicLong(BigDecimal) : java.util.concurrent.atomic.AtomicLong
Convert the given value to AtomicLong. This function is not null-safe.
Parameters:
number - a number of BigDecimal type.
Returns:
the equivalent value to number of AtomicLong type.