hasAllUpperBounds

abstract fun hasAllUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Boolean

Determines whether the declaration has all upper bounds that satisfy the provided predicate.

Note that if the upper bounds contains no elements, the function returns true because there are no elements in it that do not match the predicate.

Return

true if all upper bound declarations satisfy the predicate, false otherwise.

Parameters

predicate

A function that defines the condition to be met by upper bound declarations.