public class CastUtil extends AbstractCastUtil
| Constructor and Description |
|---|
CastUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getAs(Object value,
Class<T> type)
Casts or converts the value as type.
|
static String |
numberAsString(Number number) |
castAspublic static <T> T getAs(Object value, Class<T> type) throws ParseException
T - returning typevalue - object to casttype - class to cast object asvalue cast as class typeParseException - if a value can not be parsedCopyright © 2015 Omnia Consulting. All rights reserved.