public class GenericUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUtil.Generic
泛型颗粒
|
| Constructor and Description |
|---|
GenericUtil() |
| Modifier and Type | Method and Description |
|---|---|
static cn.t.util.common.reflect.GenericUtil.ClassGeneric |
doGetGeneric(Type type) |
static Class |
findTypeParam(Object object,
Class parameterizedSuperclass,
String typeParamName)
获取泛型类型
|
static cn.t.util.common.reflect.GenericUtil.ClassGeneric |
getGeneric(Class clazz)
获取类对象泛型结构
|
public static Class findTypeParam(Object object, Class parameterizedSuperclass, String typeParamName)
object - xxxparameterizedSuperclass - xxxtypeParamName - xxxpublic static cn.t.util.common.reflect.GenericUtil.ClassGeneric getGeneric(Class clazz)
clazz - xxxpublic static cn.t.util.common.reflect.GenericUtil.ClassGeneric doGetGeneric(Type type)
Copyright © 2019. All rights reserved.