| java.lang.Object org.xorm.util.TypeConverter
TypeConverter | public class TypeConverter (Code) | | Contains static methods for converting between various Java types.
|
convertToType | public static Object convertToType(Object input, Class clazz)(Code) | | Calls through to the three-argument version of this method,
using null as the value for the format String.
|
convertToType | public static Object convertToType(Object input, Class clazz, String format)(Code) | | Converts the input object into a return value of the type
requested. Currently, the following classes are supported:
String, Integer, Long, BigDecimal, Float, Double, Boolean.
Dates will be converted according to the format string,
using the syntax for java.text.SimpleDateFormat.
|
|
|