sdk-common / com.tomtom.online.sdk.common.functional.collections / Iterables / allOf

allOf

static fun <A : Any!> allOf(@NonNull iterable: MutableIterable<A>, @NonNull predicate: Predicate<in A>): Boolean

Checks if all values of provided iterable satisfy given predicate

Parameters

iterable - MutableIterable<A>: list of values that are going to be checked

predicate - Predicate<in A>: predicate used for checking

- value type

Return
Boolean: true if all list items satisfy the predicate, false otherwise