Modifier and type | Action and description |
---|---|
static boolean | booleanValue(CharSequence) Convert the given value to boolean . |
static boolean | booleanValue(Object) Convert an Object to a primitive boolean . |
static boolean | booleanValue(AtomicBoolean) Convert the given value to AtomicBoolean into its boolean value . |
static byte | byteValue(CharSequence) Decodes a CharSequence into a byte . |
static byte | byteValue(Object) Convert an Object to a primitive byte . |
static char | charValue(CharSequence) Decodes a CharSequence into a char . |
static char | charValue(Object) Convert an Object to a primitive char . |
static double | doubleValue(CharSequence) Decodes a CharSequence into a double . |
static double | doubleValue(Object) Convert an Object to a primitive double . |
static float | floatValue(CharSequence) Decodes a CharSequence into a float . |
static float | floatValue(Object) Convert an Object to a primitive float . |
static int | intValue(CharSequence) Decodes a CharSequence into an int . |
static int | intValue(Object) Convert an Object to a primitive int . |
static long | longValue(CharSequence) Decodes a CharSequence into a long . |
static long | longValue(Object) Convert an Object to a primitive long . |
static short | shortValue(CharSequence) Decodes a CharSequence into a short . |
static short | shortValue(Object) Convert an Object to a primitive short . |
static java.util.concurrent.atomic.AtomicBoolean | toAtomicBoolean(boolean) Convert the given boolean to its equivalent AtomicBoolean . |
static java.util.concurrent.atomic.AtomicBoolean | toAtomicBoolean(CharSequence) Decodes a CharSequence into a AtomicBoolean . |
static java.util.concurrent.atomic.AtomicBoolean | toAtomicBoolean(Object) Convert an Object to an atomic boolean . |
static com.google.common.util.concurrent.AtomicDouble | toAtomicDouble(CharSequence) Decodes a CharSequence into a AtomicDouble . |
static com.google.common.util.concurrent.AtomicDouble | toAtomicDouble(Object) Convert an Object to an atomic double . |
static java.util.concurrent.atomic.AtomicInteger | toAtomicInteger(CharSequence) Decodes a CharSequence into a AtomicInteger . |
static java.util.concurrent.atomic.AtomicInteger | toAtomicInteger(Object) Convert an Object to an atomic integer . |
static java.util.concurrent.atomic.AtomicLong | toAtomicLong(CharSequence) Decodes a CharSequence into a AtomicLong . |
static java.util.concurrent.atomic.AtomicLong | toAtomicLong(Object) Convert an Object to an atomic long . |
static java.math.BigDecimal | toBigDecimal(CharSequence) Decodes a CharSequence into a BigDecimal . |
static java.math.BigDecimal | toBigDecimal(Object) Convert an Object to a big decimal. |
static java.math.BigInteger | toBigInteger(CharSequence) Decodes a CharSequence into a BigInteger . |
static java.math.BigInteger | toBigInteger(Object) Convert an Object to a big integer. |
static byte | toByte(CharSequence) Decodes a CharSequence into a Byte . |
static java.lang.Byte | toByte(Object) Convert an Object to a Byte . |
static java.lang.Character | toCharacter(CharSequence) Decodes a CharSequence into a Character . |
static java.lang.Character | toCharacter(Object) Convert an Object to a Character . |
static java.lang.Double | toDouble(CharSequence) Decodes a CharSequence into a Double . |
static java.lang.Double | toDouble(Object) Convert an Object to a Double . |
static java.lang.Float | toFloat(CharSequence) Decodes a CharSequence into a Float . |
static java.lang.Float | toFloat(Object) Convert an Object to a Float . |
static java.lang.Integer | toInteger(CharSequence) Decodes a CharSequence into an Integer . |
static java.lang.Integer | toInteger(Object) Convert an Object to a Integer . |
static java.lang.Long | toLong(CharSequence) Decodes a CharSequence into a Long . |
static java.lang.Long | toLong(Object) Convert an Object to a Long . |
static java.lang.Short | toShort(CharSequence) Decodes a CharSequence into a Short . |
static java.lang.Short | toShort(Object) Convert an Object to a Short . |
static java.lang.String | toString(boolean) Convert the given value to String . |
static java.lang.String | toString(char) Convert the given value to String . |
static java.util.UUID | toUUID(CharSequence) Decodes a CharSequence into a UUID . |
static java.util.UUID | toUUID(Object) Convert an Object to a UUID . |
def booleanValue(CharSequence) : boolean
boolean
.
See decode(String) for details on the accepted formats for the input string of characters.
def booleanValue(Object) : boolean
Object
to a primitive boolean
.
If the given object is a boolean, the boolean value is replied. Otherwise, the given value is converted to String and then to boolean.
def booleanValue(AtomicBoolean) : boolean
AtomicBoolean
into its boolean value
.
See decode(String) for details on the accepted formats for the input string of characters.
def byteValue(CharSequence) : byte
CharSequence
into a byte
.
In opposite to the functions of Byte, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def byteValue(Object) : byte
Object
to a primitive byte
.
If the given object is a number, the byte value is replied. Otherwise, the given value is converted to String and then to byte.
def charValue(CharSequence) : char
CharSequence
into a char
.
def charValue(Object) : char
Object
to a primitive char
.
If the given object is a character, the char value is replied. Otherwise, the given value is converted to String and then to char.
def doubleValue(CharSequence) : double
CharSequence
into a double
.
In opposite to the functions of Double, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See valueOf(String) for details on the accepted formats for the input string of characters.
def doubleValue(Object) : double
Object
to a primitive double
.
If the given object is a number, the double value is replied. Otherwise, the given value is converted to String and then to double.
def floatValue(CharSequence) : float
CharSequence
into a float
.
In opposite to the functions of Float, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See valueOf(String) for details on the accepted formats for the input string of characters.
def floatValue(Object) : float
Object
to a primitive float
.
If the given object is a number, the float value is replied. Otherwise, the given value is converted to String and then to float.
def intValue(CharSequence) : int
CharSequence
into an int
.
In opposite to the functions of Integer, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def intValue(Object) : int
Object
to a primitive int
.
If the given object is a number, the int value is replied. Otherwise, the given value is converted to String and then to int.
def longValue(CharSequence) : long
CharSequence
into a long
.
In opposite to the functions of Long, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def longValue(Object) : long
Object
to a primitive long
.
If the given object is a number, the long value is replied. Otherwise, the given value is converted to String and then to long.
def shortValue(CharSequence) : short
CharSequence
into a short
.
In opposite to the functions of Short, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def shortValue(Object) : short
Object
to a primitive short
.
If the given object is a number, the short value is replied. Otherwise, the given value is converted to String and then to short.
def toAtomicBoolean(boolean) : java.util.concurrent.atomic.AtomicBoolean
AtomicBoolean
.
def toAtomicBoolean(CharSequence) : java.util.concurrent.atomic.AtomicBoolean
CharSequence
into a AtomicBoolean
.
See decode(String) for details on the accepted formats for the input string of characters.
def toAtomicBoolean(Object) : java.util.concurrent.atomic.AtomicBoolean
Object
to an atomic boolean
.
If the given object is a boolean, the boolean value is replied. Otherwise, the given value is converted to String and then to boolean.
def toAtomicDouble(CharSequence) : com.google.common.util.concurrent.AtomicDouble
CharSequence
into a AtomicDouble
.
In opposite to the functions of Double, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See doubleValue(CharSequence) for details on the accepted formats for the input string of characters.
def toAtomicDouble(Object) : com.google.common.util.concurrent.AtomicDouble
Object
to an atomic double
.
If the given object is a number, the double value is replied. Otherwise, the given value is converted to String and then to double.
def toAtomicInteger(CharSequence) : java.util.concurrent.atomic.AtomicInteger
CharSequence
into a AtomicInteger
.
In opposite to the functions of Integer, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See intValue(CharSequence) for details on the accepted formats for the input string of characters.
def toAtomicInteger(Object) : java.util.concurrent.atomic.AtomicInteger
Object
to an atomic integer
.
If the given object is a number, the int value is replied. Otherwise, the given value is converted to String and then to int.
def toAtomicLong(CharSequence) : java.util.concurrent.atomic.AtomicLong
CharSequence
into a AtomicLong
.
In opposite to the functions of Long, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See longValue(CharSequence) for details on the accepted formats for the input string of characters.
def toAtomicLong(Object) : java.util.concurrent.atomic.AtomicLong
Object
to an atomic long
.
If the given object is a number, the long value is replied. Otherwise, the given value is converted to String and then to long.
def toBigDecimal(CharSequence) : java.math.BigDecimal
CharSequence
into a BigDecimal
.
In opposite to the functions of Double, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See BigDecimal(String) for details on the accepted formats for the input string of characters.
def toBigDecimal(Object) : java.math.BigDecimal
Object
to a big decimal.
If the given object is a number, the double value is replied. Otherwise, the given value is converted to String and then to double.
def toBigInteger(CharSequence) : java.math.BigInteger
CharSequence
into a BigInteger
.
In opposite to the functions of Integer, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See BigInteger(String) for details on the accepted formats for the input string of characters.
def toBigInteger(Object) : java.math.BigInteger
Object
to a big integer.
If the given object is a number, the long value is replied. Otherwise, the given value is converted to String and then to long.
def toByte(CharSequence) : byte
CharSequence
into a Byte
.
In opposite to the functions of Byte, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def toByte(Object) : java.lang.Byte
Object
to a Byte
.
If the given object is a number, the byte value is replied. Otherwise, the given value is converted to String and then to byte.
def toCharacter(CharSequence) : java.lang.Character
CharSequence
into a Character
.
def toCharacter(Object) : java.lang.Character
Object
to a Character
.
If the given object is a character, the value is replied. If the given object is a number, the int value converted to char is replied. Otherwise, the given value is converted to String and then to char.
def toDouble(CharSequence) : java.lang.Double
CharSequence
into a Double
.
In opposite to the functions of Double, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See valueOf(String) for details on the accepted formats for the input string of characters.
def toDouble(Object) : java.lang.Double
Object
to a Double
.
If the given object is a number, the double value is replied. Otherwise, the given value is converted to String and then to double.
def toFloat(CharSequence) : java.lang.Float
CharSequence
into a Float
.
In opposite to the functions of Float, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See valueOf(String) for details on the accepted formats for the input string of characters.
def toFloat(Object) : java.lang.Float
Object
to a Float
.
If the given object is a number, the float value is replied. Otherwise, the given value is converted to String and then to float.
def toInteger(CharSequence) : java.lang.Integer
CharSequence
into an Integer
.
In opposite to the functions of Integer, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def toInteger(Object) : java.lang.Integer
Object
to a Integer
.
If the given object is a number, the int value is replied. Otherwise, the given value is converted to String and then to int.
def toLong(CharSequence) : java.lang.Long
CharSequence
into a Long
.
In opposite to the functions of Long, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def toLong(Object) : java.lang.Long
Object
to a Long
.
If the given object is a number, the long value is replied. Otherwise, the given value is converted to String and then to long.
def toShort(CharSequence) : java.lang.Short
CharSequence
into a Short
.
In opposite to the functions of Short, this function is null-safe and does not generate a NumberFormatException. If the given string cannot by parsed, 0
is replied.
See decode(String) for details on the accepted formats for the input string of characters.
def toShort(Object) : java.lang.Short
Object
to a Short
.
If the given object is a number, the short value is replied. Otherwise, the given value is converted to String and then to short.
def toString(boolean) : java.lang.String
String
.
def toString(char) : java.lang.String
String
.
def toUUID(CharSequence) : java.util.UUID
CharSequence
into a UUID
.
In opposite to the functions of UUID, this function is null-safe and does not generate an exception. If the given string cannot by parsed, null
is replied.
def toUUID(Object) : java.util.UUID
Object
to a UUID
.
If the given object is a identifier, the value is replied. Otherwise, the given value is converted to String and then to identifier.