public static <T> boolean any(Collection<T> items, Predicate<T> predicate) {
        T firstOrNull = firstOrNull(items, predicate);
        return firstOrNull != null;
    }
public static < T > boolean any ( Collection < T > items , Predicate < T > predicate ) { T firstOrNull = firstOrNull ( items , predicate ) ; return firstOrNull != null ; }
Returns <tt>true</tt> if any element of a collection matches the given predicate.

@param items source items
@param predicate predicate function
@param <T> type of elements in the source collection
@return <tt>true</tt> if any element of the collection matches the given predicate