hasAllInterfacesAndObjects

abstract fun hasAllInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has all interfaces and objects that satisfy the provided predicate.

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

Return

true if all interface or object declarations satisfy the predicate, false otherwise.

Parameters

includeNested

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

predicate

A function that defines the condition to be met by interface or object declarations.