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

allOf

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

Checks if the given list of values contains only values that satisfy the given predicate.

Parameters

list - MutableList<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 satisfied the predicate, false otherwise