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 .