Package org.drools.core.base
Class CoercionUtil
- java.lang.Object
-
- org.drools.core.base.CoercionUtil
-
public class CoercionUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description CoercionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigDecimal
coerceToBigDecimal(Object value)
static BigInteger
coerceToBigInteger(Object value)
static Character
coerceToCharacter(Object value)
static Double
coerceToDouble(Object value)
static Float
coerceToFloat(Object value)
static Integer
coerceToInteger(Object value)
static Long
coerceToLong(Object value)
static Number
coerceToNumber(Number value, Class<?> toClass)
static Number
coerceToNumber(String value, Class<?> toClass)
static Short
coerceToShort(Object value)
static String
coerceToString(Object value)
-
-
-
Method Detail
-
coerceToBigInteger
public static BigInteger coerceToBigInteger(Object value)
-
coerceToBigDecimal
public static BigDecimal coerceToBigDecimal(Object value)
-
-