hasTypeArgumentOf

abstract fun hasTypeArgumentOf(name: KClass<*>, vararg names: KClass<*>): Boolean

Checks if any type argument is of the specified class.

Return

true if any type argument matches one of the classes, otherwise false.

Parameters

name

The first class to check.

names

Additional classes to check.


abstract fun hasTypeArgumentOf(names: Collection<KClass<*>>): Boolean

Checks if any type argument is of the specified class.

Return

true if any type argument matches one of the classes, otherwise false.

Parameters

names

A collection of classes to check.