java.lang.Object
nl.jqno.equalsverifier.internal.reflection.FieldMutator
Allows for a field in an object reference to be set to another value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidsafelySetField(Object object, Object newValue) voidsetNewValue(Object object, Object newValue) AssignsnewValueto the current field inobject.
-
Field Details
-
probe
-
field
-
-
Constructor Details
-
FieldMutator
Constructor.- Parameters:
probe- A field probe pointing to the field to mutate.
-
-
Method Details
-
setNewValue
AssignsnewValueto the current field inobject.- Parameters:
object- The instance on which to re-assign the current field.newValue- The value to assign to the field.
-
safelySetField
- Throws:
IllegalAccessException
-