hasAllObjects

abstract fun hasAllObjects(includeNested: Boolean = true, predicate: (KoObjectDeclaration) -> Boolean): Boolean

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

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

Return

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

Parameters

includeNested

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

predicate

An object that defines the condition to be met by object declarations.