exist

fun exist(object: Any, fieldName: String, fieldType: Class<*>): Boolean

Check if a field exists in a class

Return

whether the field exists or not

Parameters

object

the object to check the field existence from

fieldName

the name of the field to check

fieldType

the type of the field to check


fun exist(object: Any, fieldName: String): Boolean

Check if a field exists in a class

Return

whether the field exists or not

Parameters

object

the object to check the field existence from

fieldName

the name of the field to check