Class GenericMaster
java.lang.Object
org.mockito.internal.util.reflection.GenericMaster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getGenericType
(Field field) Finds the generic type (parametrized type) of the field.
-
Constructor Details
-
GenericMaster
public GenericMaster()
-
-
Method Details
-
getGenericType
Finds the generic type (parametrized type) of the field. If the field is not generic it returns Object.class.- Parameters:
field
- the field to inspect
-