Package org.instancio.internal.assigners
Interface Assigner
- All Known Implementing Classes:
FieldAssigner
,MethodAssigner
Encapsulates the details of how values are assigned to an object's fields.
- Since:
- 2.1.0
-
Method Summary
-
Method Details
-
assign
Assigns given value to the target object's field. The assignment itself can be performed by:- Parameters:
node
- contains information about the target field.target
- that has the field to be assigned.value
- value to assign, can benull
; if the target field is a primitive, thennull
value is simply ignored.
-