|
Name | Description |
---|---|
fieldName | The name of the field (e.g. int counter; would have fieldName = "counter") |
val | The value to assign to the field. It has to match the field type. |
Set the value of a field in an object (non-static).
The generic parameter determines the field type.