countUpperBounds

abstract fun countUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Int

Returns the number of upper bounds that satisfies the specified predicate present in the declaration.

Return

The number of upper bounds in the declaration.

Parameters

predicate

The predicate function to determine if an upper bound satisfies a condition.