io.sarl.lang.core.scoping.extensions.numbers.cast
Class PrimitiveDoubleCastExtensions
final class PrimitiveDoubleCastExtensions
extends java.lang.Object
Provide static functions related to the casting of numbers of type double.
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(double)
Convert the given value to AtomicDouble.
static java.util.concurrent.atomic.AtomicInteger toAtomicInteger(double)
Convert the given value to AtomicInteger.
static java.util.concurrent.atomic.AtomicLong toAtomicLong(double)
Convert the given value to AtomicLong.
static java.math.BigDecimal toBigDecimal(double)
Convert the given value to BigDecimal.
static java.math.BigInteger toBigInteger(double)
Convert the given value to BigInteger.
static java.lang.Byte toByte(double)
Convert the given value to Byte.
static java.lang.Float toFloat(double)
Convert the given value to Float.
static java.lang.Integer toInteger(double)
Convert the given value to Integer.
static java.lang.Long toLong(double)
Convert the given value to Long.
static java.lang.Short toShort(double)
Convert the given value to Integer.
static java.lang.String toString(double)
Convert the given value to String.
Action Details
toAtomicDouble(double)
def toAtomicDouble(double) : com.google.common.util.concurrent.AtomicDouble
Convert the given value to AtomicDouble.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of AtomicDouble type.
toAtomicInteger(double)
def toAtomicInteger(double) : java.util.concurrent.atomic.AtomicInteger
Convert the given value to AtomicInteger.
Parameters:
number - a number of short type.
Returns:
the equivalent value to number of AtomicInteger type.
toAtomicLong(double)
def toAtomicLong(double) : java.util.concurrent.atomic.AtomicLong
Convert the given value to AtomicLong.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of AtomicLong type.
toBigDecimal(double)
def toBigDecimal(double) : java.math.BigDecimal
Convert the given value to BigDecimal.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of BigDecimal type.
toBigInteger(double)
def toBigInteger(double) : java.math.BigInteger
Convert the given value to BigInteger.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of BigInteger type.
toByte(double)
def toByte(double) : java.lang.Byte
Convert the given value to Byte.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of Byte type.
toFloat(double)
def toFloat(double) : java.lang.Float
Convert the given value to Float.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of Float type.
toInteger(double)
def toInteger(double) : java.lang.Integer
Convert the given value to Integer.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of Integer type.
toLong(double)
def toLong(double) : java.lang.Long
Convert the given value to Long.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of Long type.
toShort(double)
def toShort(double) : java.lang.Short
Convert the given value to Integer.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of Integer type.
toString(double)
def toString(double) : java.lang.String
Convert the given value to String.
Parameters:
number - a number of double type.
Returns:
the equivalent value to number of String type.