io.sarl.lang.core.scoping.extensions.numbers.cast
Class AtomicIntegerCastExtensions
final class AtomicIntegerCastExtensions
extends java.lang.Object
Provide static functions related to the casting of numbers of type AtomicInteger.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.7
See:
"https://github.com/eclipse/xtext-extras/issues/186"
Action Summary
Modifier and type Action and description
static com.google.common.util.concurrent.AtomicDouble toAtomicDouble(AtomicInteger)
Convert the given value to AtomicDouble.
static java.util.concurrent.atomic.AtomicLong toAtomicLong(AtomicInteger)
Convert the given value to AtomicLong.
static java.math.BigDecimal toBigDecimal(AtomicInteger)
Convert the given value to BigDecimal.
static java.math.BigInteger toBigInteger(AtomicInteger)
Convert the given value to BigInteger.
static java.lang.Byte toByte(AtomicInteger)
Convert the given value to byte.
static java.lang.Double toDouble(AtomicInteger)
Convert the given value to Double.
static java.lang.Float toFloat(AtomicInteger)
Convert the given value to Float.
static java.lang.Integer toInteger(AtomicInteger)
Convert the given value to Integer.
static java.lang.Long toLong(AtomicInteger)
Convert the given value to long.
static java.lang.Short toShort(AtomicInteger)
Convert the given value to short.
Action Details
toAtomicDouble(AtomicInteger)
def toAtomicDouble(AtomicInteger) : com.google.common.util.concurrent.AtomicDouble
Convert the given value to AtomicDouble. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of AtomicDouble type.
toAtomicLong(AtomicInteger)
def toAtomicLong(AtomicInteger) : java.util.concurrent.atomic.AtomicLong
Convert the given value to AtomicLong. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of AtomicLong type.
toBigDecimal(AtomicInteger)
def toBigDecimal(AtomicInteger) : java.math.BigDecimal
Convert the given value to BigDecimal.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of BigDecimal type.
toBigInteger(AtomicInteger)
def toBigInteger(AtomicInteger) : java.math.BigInteger
Convert the given value to BigInteger.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of BigInteger type.
toByte(AtomicInteger)
def toByte(AtomicInteger) : java.lang.Byte
Convert the given value to byte. This function is not null-safe
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of byte type.
toDouble(AtomicInteger)
def toDouble(AtomicInteger) : java.lang.Double
Convert the given value to Double. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of Double type.
toFloat(AtomicInteger)
def toFloat(AtomicInteger) : java.lang.Float
Convert the given value to Float. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of float type.
toInteger(AtomicInteger)
def toInteger(AtomicInteger) : java.lang.Integer
Convert the given value to Integer. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of Integer type.
toLong(AtomicInteger)
def toLong(AtomicInteger) : java.lang.Long
Convert the given value to long. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of long type.
toShort(AtomicInteger)
def toShort(AtomicInteger) : java.lang.Short
Convert the given value to short. This function is not null-safe.
Parameters:
number - a number of AtomicInteger type.
Returns:
the equivalent value to number of short type.