Class Fields
- java.lang.Object
-
- dk.cloudcreate.essentials.shared.reflection.Fields
-
-
Constructor Summary
Constructors Constructor Description Fields()
-
-
-
Method Detail
-
findField
public static Optional<Field> findField(Set<Field> fields, String fieldName, Class<?> fieldType)
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()
-
-