public class TypeConverterImpl extends Object implements TypeConverter
DEFAULT
Constructor and Description |
---|
TypeConverterImpl() |
Modifier and Type | Method and Description |
---|---|
protected Object |
coerceStringToType(String value,
Class<?> type) |
protected BigDecimal |
coerceToBigDecimal(Object value) |
protected BigInteger |
coerceToBigInteger(Object value) |
protected Boolean |
coerceToBoolean(Object value) |
protected Byte |
coerceToByte(Object value) |
protected Character |
coerceToCharacter(Object value) |
protected Double |
coerceToDouble(Object value) |
protected <T extends Enum<T>> |
coerceToEnum(Object value,
Class<T> type) |
protected Float |
coerceToFloat(Object value) |
protected Integer |
coerceToInteger(Object value) |
protected Long |
coerceToLong(Object value) |
protected Short |
coerceToShort(Object value) |
protected String |
coerceToString(Object value) |
protected Object |
coerceToType(Object value,
Class<?> type) |
<T> T |
convert(Object value,
Class<T> type)
Convert the given input value to the specified target type.
|
boolean |
equals(Object obj) |
int |
hashCode() |
protected BigDecimal coerceToBigDecimal(Object value)
protected BigInteger coerceToBigInteger(Object value)
public <T> T convert(Object value, Class<T> type) throws ELException
TypeConverter
convert
in interface TypeConverter
value
- input valuetype
- target typeELException
Copyright © 2017. All rights reserved.