public class TypeUtil extends Object
Constructor and Description |
---|
TypeUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
uncheckedCast(Object o)
Casts an object to a type.
|
static <T> T |
uncheckedCast(Object o,
Object typeDecl)
Deprecated.
Use
uncheckedCast(Object) instead. Casts an object to a type. |
public static <T> T uncheckedCast(Object o)
T
- the type of the resulto
- object to be cast@Deprecated public static <T> T uncheckedCast(Object o, Object typeDecl)
uncheckedCast(Object)
instead. Casts an object to a type.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 © 2018. All rights reserved.