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.
list
- MutableList<A>: list of values that are going to be checked
predicate
- Predicate<in A>: predicate used for checking
Return
Boolean: true if all list items satisfied the predicate, false otherwise