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

anyOf

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

Returns a predicate that will return true if one of the given predicates returns true.

Parameters

predicates - Predicate<T>!: Array containing predicates from which one should be fulfilled.

- type of the resulting Predicate.

Exceptions

NullPointerException - if the argument passed is null.

Return
Predicate<T>!: instance of Predicate.