Package net.apartium.cocoabeans.reflect
Class FieldUtils
java.lang.Object
net.apartium.cocoabeans.reflect.FieldUtils
Utilities to work with java Field class
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeclaredFieldsByExactType(Class<?> clazz, Class<?> fieldType) Get all declared fields whose type is the same of given fieldTypegetFieldsByExactType(Class<?> clazz, Class<?> fieldType) Get all fields whose type is the same of given fieldType
-
Constructor Details
-
FieldUtils
public FieldUtils()
-
-
Method Details
-
getDeclaredFieldsByExactType
Get all declared fields whose type is the same of given fieldType- Parameters:
clazz- clazz to lookup fields fromfieldType- expected field types- Returns:
- a mutable set of fields found
-
getFieldsByExactType
Get all fields whose type is the same of given fieldType- Parameters:
clazz- clazz to lookup fields fromfieldType- expected field types- Returns:
- a mutable set of fields found
-