io.sarl.lang.core.scoping.extensions.numbers.cast
Class AtomicLongCastExtensions
final class AtomicLongCastExtensions
extends java.lang.Object
Provide static functions related to the casting of numbers of type AtomicLong.
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(AtomicLong)
Convert the given value to AtomicDouble.
static java.util.concurrent.atomic.AtomicInteger toAtomicInteger(AtomicLong)
Convert the given value to AtomicInteger.
static java.math.BigDecimal toBigDecimal(AtomicLong)
Convert the given value to BigDecimal.
static java.math.BigInteger toBigInteger(AtomicLong)
Convert the given value to BigInteger.
static java.lang.Byte toByte(AtomicLong)
Convert the given value to Byte.
static java.lang.Double toDouble(AtomicLong)
Convert the given value to Double.
static java.lang.Float toFloat(AtomicLong)
Convert the given value to Float.
static int toInt(AtomicLong)
Convert the given value to int.
Deprecated for removal since 0.11: See toInteger(AtomicLong).
static java.lang.Integer toInteger(AtomicLong)
Convert the given value to Integer.
static java.lang.Long toLong(AtomicLong)
Convert the given value to Long.
static java.lang.Long toLongInteger(AtomicLong)
Convert the given value to Long.
Deprecated for removal since 0.11: see toLong(AtomicLong)
static java.lang.Short toShort(AtomicLong)
Convert the given value to Short.
Action Details
toAtomicDouble(AtomicLong)
def toAtomicDouble(AtomicLong) : com.google.common.util.concurrent.AtomicDouble
Convert the given value to AtomicDouble. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of AtomicDouble type.
toAtomicInteger(AtomicLong)
def toAtomicInteger(AtomicLong) : java.util.concurrent.atomic.AtomicInteger
Convert the given value to AtomicInteger. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of AtomicInteger type.
toBigDecimal(AtomicLong)
def toBigDecimal(AtomicLong) : java.math.BigDecimal
Convert the given value to BigDecimal.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of BigDecimal type.
toBigInteger(AtomicLong)
def toBigInteger(AtomicLong) : java.math.BigInteger
Convert the given value to BigInteger.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of BigInteger type.
toByte(AtomicLong)
def toByte(AtomicLong) : java.lang.Byte
Convert the given value to Byte. This function is not null-safe
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Byte type.
toDouble(AtomicLong)
def toDouble(AtomicLong) : java.lang.Double
Convert the given value to Double. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Double type.
toFloat(AtomicLong)
def toFloat(AtomicLong) : java.lang.Float
Convert the given value to Float. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Float type.
toInt(AtomicLong)
def toInt(AtomicLong) : int
Convert the given value to int. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of int type.
Deprecated:
See toInteger(AtomicLong) .
toInteger(AtomicLong)
def toInteger(AtomicLong) : java.lang.Integer
Convert the given value to Integer. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Integer type.
toLong(AtomicLong)
def toLong(AtomicLong) : java.lang.Long
Convert the given value to Long. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Long type.
toLongInteger(AtomicLong)
def toLongInteger(AtomicLong) : java.lang.Long
Convert the given value to Long. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Long type.
Deprecated:
see toLong(AtomicLong)
toShort(AtomicLong)
def toShort(AtomicLong) : java.lang.Short
Convert the given value to Short. This function is not null-safe.
Parameters:
number - a number of AtomicLong type.
Returns:
the equivalent value to number of Short type.