public static < T > boolean any ( final Iterable < T > sequence , final Predicate < ? super T > predicate ) { for ( T t : sequence ) { if ( predicate . test ( t ) ) { return true ; } } return false ; }
Determines whether a given predicate holds true for at least one element .