-
public class EntityUtils
Entity utility methods.
-
-
Field Summary
Fields Modifier and Type Field Description public final static EntityUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final Field
getFieldWithAnnotation(Class<?> clazz, Class<out Annotation> annotationClass)
Gets the first found Field of the given class and its parents (if any) that is annotated with the given annotation. final List<Class<?>>
getParameterizedTypes(Field field)
Gets the parameterized types of the given field. -
-
Method Detail
-
getFieldWithAnnotation
final Field getFieldWithAnnotation(Class<?> clazz, Class<out Annotation> annotationClass)
Gets the first found Field of the given class and its parents (if any) that is annotated with the given annotation.
- Parameters:
clazz
- the Class to queryannotationClass
- – the Annotation that must be present on a field to be matched
-
getParameterizedTypes
final List<Class<?>> getParameterizedTypes(Field field)
Gets the parameterized types of the given field.
May return an empty list if the field type is not parameterized
- Parameters:
field
- The Field to query
-
-
-
-