Package com.mchange.v2.lang
Class Coerce
- java.lang.Object
-
- com.mchange.v2.lang.Coerce
-
public final class Coerce extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canCoerce(java.lang.Class cl)
static boolean
canCoerce(java.lang.Object o)
static boolean
toBoolean(java.lang.String s)
static byte
toByte(java.lang.String s)
static char
toChar(java.lang.String s)
static double
toDouble(java.lang.String s)
static float
toFloat(java.lang.String s)
static int
toInt(java.lang.String s)
static long
toLong(java.lang.String s)
static java.lang.Object
toObject(java.lang.String s, java.lang.Class type)
static short
toShort(java.lang.String s)
-
-
-
Method Detail
-
canCoerce
public static boolean canCoerce(java.lang.Class cl)
-
canCoerce
public static boolean canCoerce(java.lang.Object o)
-
toInt
public static int toInt(java.lang.String s)
-
toLong
public static long toLong(java.lang.String s)
-
toFloat
public static float toFloat(java.lang.String s)
-
toDouble
public static double toDouble(java.lang.String s)
-
toByte
public static byte toByte(java.lang.String s)
-
toShort
public static short toShort(java.lang.String s)
-
toBoolean
public static boolean toBoolean(java.lang.String s)
-
toChar
public static char toChar(java.lang.String s)
-
toObject
public static java.lang.Object toObject(java.lang.String s, java.lang.Class type)
-
-