sdk-common / com.tomtom.online.sdk.common.functional / Predicates / allOf

allOf

@SafeVarargs static fun <T : Any!> allOf(@NonNull vararg predicates: Predicate<T>!): Predicate<T>!

Returns a predicate that will return true if all given predicates return true. Please be aware that an empty array of predicates will cause this function to return true.

Parameters

predicates - Predicate<T>!: Array containing all predicates that should be fulfilled.

- type of the resulting Predicate.

Exceptions

NullPointerException - if the argument passed is null.

Return
Predicate<T>!: instance of Predicate.