isSubclassOf

fun <T : Any> isSubclassOf(instance: T, kClass: KClass<out Any>): Boolean

判断对象是否为某个类的子类

Return

Parameters

T
instance

当前实例

kClass

需要匹配的类对象