T - the type of the resultpublic class TypeUtil<T> extends Object
| Constructor and Description |
|---|
TypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
uncheckedCast(Object o,
TypeUtil<T> typeDecl)
Casts an object to a type.
|
public static <T> T uncheckedCast(Object o, TypeUtil<T> typeDecl)
T - the type of the resulto - object to be casttypeDecl - conveys the target type information; the actual value is unused and can be
null since this is all just stupid compiler tricksCopyright © 2017. All rights reserved.