public static <T> Predicate<T> contains(final Iterable<T> iterable) {
        return new Predicate<T>() {
            @Override
            public boolean test(final T testValue) {
                return Iterables.contains(iterable, testValue);
            }
        };
    }
public static < T > Predicate < T > contains ( final Iterable < T > iterable ) { return new Predicate < T > ( ) { @ Override public boolean test ( final T testValue ) { return Iterables . contains ( iterable , testValue ) ; } } ; }
Returns a predicate that that tests if an iterable contains an argument.

@param iterable the iterable, may not be null
@param <T>      the type of the argument to the predicate
@return a predicate that that tests if an iterable contains an argument