com.mchange.v2.lang
Class Coerce
java.lang.Object
com.mchange.v2.lang.Coerce
public final class Coerce
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canCoerce
public static boolean canCoerce(Class cl)
canCoerce
public static boolean canCoerce(Object o)
toInt
public static int toInt(String s)
toLong
public static long toLong(String s)
toFloat
public static float toFloat(String s)
toDouble
public static double toDouble(String s)
toByte
public static byte toByte(String s)
toShort
public static short toShort(String s)
toBoolean
public static boolean toBoolean(String s)
toChar
public static char toChar(String s)
toObject
public static Object toObject(String s,
Class type)