get

fun get(object: Any, fieldName: String, fieldType: Class<*>): Result<*>

Get a field in a class

Return

the value of the field

Parameters

object

the object to get the field value from

fieldName

the name of the field to get

fieldType

the type of the field to get


fun get(object: Any, fieldName: String): Result<*>

Get a field in a class

Return

the value of the field

Parameters

object

the object to get the field value from

fieldName

the name of the field to get