Package team.lodestar.lodestone.helpers
Class ReflectionHelper
java.lang.Object
team.lodestar.lodestone.helpers.ReflectionHelper
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReflectionHelper
public ReflectionHelper()
-
-
Method Details
-
copyFields
Copies fields from one object to another.- Parameters:
fieldNames- The names of the fields to absorb. If empty, all fields will be absorbed.
-
getField
Gets a field from an object, regardless of access restrictions. Returns empty optional if invalid.- Parameters:
name- The name of the field.object- The object to get the field from.
-