public boolean anyMatch ( Predicate < ? super T > predicate ) { while ( iterator . hasNext ( ) ) { if ( predicate . test ( iterator . next ( ) ) ) { return true ; } } return false ; }
Returns whether any elements of this stream match the provided predicate . If the stream is empty then false is returned and the predicate is not evaluated .