public class ParamTypeUtil extends Object
| Constructor and Description |
|---|
ParamTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
findParamType(Class<?> cls,
Class<?> matchType)
Find and return the parameter type given a generic interface or class.
|
public static Class<?> findParamType(Class<?> cls, Class<?> matchType)
This assumes there is only one generic parameter.
Returns null if no match was found.
cls - the class to search for the parameter typematchType - the type which has the generic parameterCopyright © 2014. All Rights Reserved.