public class GenericTypeHelper extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GenericTypeHelper.GenericType<T> |
| 构造器和说明 |
|---|
GenericTypeHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Type |
buildParameterizedType(Class<?> c,
Type... parameters) |
static Type |
solveFromInstance(TypeVariable<?> t,
Object instance) |
static Type |
solveFromType(TypeVariable<?> t,
Type context) |
static Type |
toReference(Type t,
Type context) |
static Class<?> |
typeToClass(Type type) |
public static Type solveFromInstance(TypeVariable<?> t, Object instance)
public static Type solveFromType(TypeVariable<?> t, Type context)
Copyright © 2021. All rights reserved.