hasAllImports

abstract fun hasAllImports(predicate: (KoImportDeclaration) -> Boolean): Boolean

Determines whatever the declaration has all imports with the specified predicate.

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

Return

true if the declaration has all imports with the specified predicate, false otherwise.

Parameters

predicate

The predicate function to determine if an import satisfies a condition.