Class Fields
java.lang.Object
dk.cloudcreate.essentials.shared.reflection.Fields
Utility class for working with
Field's-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Fields
public Fields()
-
-
Method Details
-
findField
Find a field by name and type- Parameters:
fields- the set of Fields (e.g. returned byfields(Class))fieldName- the name of the fieldfieldType- the type of the field- Returns:
- Optional with the matching field or
Optional.empty()
-
fields
Get all fields in the type- Parameters:
type- the type we want to find all fields within- Returns:
- all fields (each marked as accessible) in the type
-