set

fun set(object: Any, fieldName: String, fieldType: Class<*>, value: Any?): Result<*>

Set a field in a class

Return

success if the field was set, failed if not

Parameters

object

the object to set the field value to

fieldName

the name of the field to set

fieldType

the type of the field to set

value

the value to set


fun set(object: Any, fieldName: String, value: Any?): Result<*>