类 ConvertUtils
java.lang.Object
com.cdkjframework.util.tool.number.ConvertUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Boolean
convertBoolean
(Object obj) 将值转换为布尔static BigDecimal
convertDecimal
(Object obj) 将值转换为大十进制static Double
convertDouble
(Object obj) 将值转换为双精度static Float
convertFloat
(Object obj) 将值转换为浮动static int
convertInt
(Object obj) 将值转换为整数static Long
convertLong
(Object obj) 转换为长整形static String
convertString
(Object obj) 转换为字段串类型
-
构造器详细资料
-
ConvertUtils
public ConvertUtils()
-
-
方法详细资料
-
convertInt
将值转换为整数- 参数:
obj
- 值- 返回:
- 返回结果
-
convertFloat
将值转换为浮动- 参数:
obj
- 值- 返回:
- 返回结果
-
convertDouble
将值转换为双精度- 参数:
obj
- 值- 返回:
- 返回结果
-
convertDecimal
将值转换为大十进制- 参数:
obj
- 值- 返回:
- 返回结果
-
convertLong
转换为长整形- 参数:
obj
- 数据- 返回:
- 返回结果
-
convertBoolean
将值转换为布尔- 参数:
obj
- 值- 返回:
- 返回结果
-
convertString
转换为字段串类型- 参数:
obj
- 数据- 返回:
- 返回结果
-