public class Parameters extends Object
Parameters is a class for the identification of types/classes of
a generic parameter.| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getClass(Type type)
Returns the class of a type.
|
static Type |
getType(Class<?> clazz,
Object object,
String variable)
Returns the type of the generic of the interface or class of an class for
an object.
|
public static Class<?> getClass(Type type)
type - the typepublic static Type getType(Class<?> clazz, Object object, String variable)
clazz - the interface with the undefined genericobject - the current implementation of the interfacevariable - the identifier