isAssignableFrom

inline fun <T> isAssignableFrom(): Boolean

Return

true if the wrapped javaClass is either the same as, or is a superclass or superinterface of T.

Parameters

T

class to test.


fun isAssignableFrom(fromClass: KClass<*>): Boolean
fun isAssignableFrom(fromClass: Class<*>): Boolean

Return

true if the wrapped javaClass is either the same as, or is a superclass or superinterface of fromClass.

Parameters

fromClass

class to test.