public class CoercionUtil extends Object
| Constructor and Description |
|---|
CoercionUtil() |
| Modifier and Type | Method and 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) |
public static BigInteger coerceToBigInteger(Object value)
public static BigDecimal coerceToBigDecimal(Object value)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.