类 ConvertUtils
- java.lang.Object
-
- net.sinodawn.framework.utils.ConvertUtils
-
public class ConvertUtils extends Object
-
-
构造器概要
构造器 构造器 说明 ConvertUtils()
-
-
-
方法详细资料
-
canConvert
public static <T,S> boolean canConvert(S source, Class<T> targetType)
-
convert
public static <T,S> T convert(S source, Class<T> targetType)
-
convert
public static <T,S> T convert(S source, Class<T> targetType, T defaultValue)执行转型操作- 类型参数:
T- TargetTypeS- SourceType- 参数:
source- sourceObjecttargetType- targetTypedefaultValue- 默认值- 返回:
- TargetObject
-
-