public class CastUtil extends Object
| Constructor and Description |
|---|
CastUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <R> R |
castAs(Object value,
Class<R> type)
Casts or converts the value as type.
|
static <R> List<R> |
getAsList(List<?> value) |
public static <R> R castAs(Object value, Class<R> type)
R - returning typevalue - object to casttype - class to cast object asvalue cast as class typeRuntimeException - if anything goes wrongCopyright © 2015 Omnia Consulting. All rights reserved.