withParentInterfaceOf

fun <T : KoParentInterfaceProvider> List<T>.withParentInterfaceOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectParents: Boolean = false): List<T>

List containing declarations that have at least one parent interface of the specified KClass type.

Return

A list containing declarations with at least one parent interface of the specified KClass type.

Parameters

kClass

The Kotlin class representing parent interface to include.

kClasses

The Kotlin classes representing parent interfaces to include.

indirectParents

Whether to include indirect parent interfaces.


fun <T : KoParentInterfaceProvider> List<T>.withParentInterfaceOf(kClasses: Collection<KClass<*>>, indirectParents: Boolean = false): List<T>

List containing declarations that have at least one parent interface of the specified KClass type.

Return

A list containing declarations with at least one parent interface of the specified KClass type.

Parameters

kClasses

The Kotlin classes representing parent interfaces to include.

indirectParents

Whether to include indirect parent interfaces.