public class GenericsUtils extends Object
| Constructor and Description |
|---|
GenericsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(Object obj,
Class<T> cls) |
static <T> Class<T> |
getGenericClass(Class<?> cls,
int position) |
static Type |
getGenericType(Class<?> cls,
int position) |
static String |
getGenericTypeName(Class<?> cls) |
static String |
getGenericTypeName(Class<?> cls,
int position) |
Copyright © 2020. All rights reserved.