isAssignableFrom

open fun isAssignableFrom(cls: Class<out Any>): Boolean

Check if this type is assignable from the given class object.

Deprecated

this implementation may be inconsistent with javac for typeswith wildcards.

open fun isAssignableFrom(from: Type): Boolean

Check if this type is assignable from the given Type.

Deprecated

this implementation may be inconsistent with javac for typeswith wildcards.

open fun isAssignableFrom(token: TypeToken<out Any>): Boolean

Check if this type is assignable from the given type token.

Deprecated

this implementation may be inconsistent with javac for typeswith wildcards.