hasInterface

abstract fun hasInterface(includeNested: Boolean = true, predicate: (KoInterfaceDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one interface that satisfies the provided predicate.

Return

true if there is a matching declaration, false otherwise.

Parameters

includeNested

Specifies whether to include nested interfaces in the check (optional, default is true).

predicate

An interface that defines the condition to be met by a interface declaration.