public final class TypeCast
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <RESULT_TYPE> |
toType(java.lang.Object obj,
java.lang.Class<RESULT_TYPE> type)
Converts an object to an specific type if possible.
|
public static <RESULT_TYPE> RESULT_TYPE toType(java.lang.Object obj,
java.lang.Class<RESULT_TYPE> type)
RESULT_TYPE - The type to convert toobj - The object to cast, maybe nulltype - The type to convert tojava.lang.IllegalStateException - if object could not be castedSiehe auch Jowidgets Nutzerhandbuch