public final class GenericUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class |
findFieldType(Field field,
Class concreteClass)
Tries to discover type of given field.
|
static boolean |
isGenericField(Field field)
Helper to check whether a given field is a generic field (A field described by a type variable).
|
static boolean |
isParameterizedField(Field field)
Helper to check whether a given field is a parameterized field (A field described by a type variable presenting a parameter type).
|
public static boolean isGenericField(Field field)
field - The field to check for a type variablefield is a generic field.public static boolean isParameterizedField(Field field)
field - The field to check for a parameterized typefield is a parameterized field.public static Class findFieldType(Field field, Class concreteClass)
Object.class will be returned.field - fieldconcreteClass - concrete class that either declares the field or is a subclass of such classCopyright © 2015–2020 Neo Technology, Inc.. All rights reserved.