Package net.tangly.commons.lang
Class ReflectionUtilities
java.lang.Object
net.tangly.commons.lang.ReflectionUtilities
Utility cass to manipulate objects through reflection.
-
Method Details
-
set
-
set
-
get
-
get
-
findField
public static <T> Optional<Field> findField(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull String name) Finds the field with the given name.- Type Parameters:
T
- type of the class owning the field- Parameters:
clazz
- class owning the field to retrievename
- of the field to be found- Returns:
- the requested field if found otherwise null
-