countParentInterfaces

abstract fun countParentInterfaces(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int

Returns the number of parent interfaces that satisfies the specified predicate present in the declaration.

Return

The number of parent interfaces in the declaration satisfying predicate.

Parameters

indirectParents

specifies whether to include parent interfaces defined in other files such as parent of the parent.

predicate

The predicate function to determine if a parent interface satisfies a condition.