com.mchange.v2.lang
Class Coerce

java.lang.Object
  extended by com.mchange.v2.lang.Coerce

public final class Coerce
extends Object


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

Method Detail

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)