public boolean detect ( Predicate < Row > predicate ) { Row row = new Row ( this ) ; while ( row . hasNext ( ) ) { if ( predicate . test ( row . next ( ) ) ) { return true ; } } return false ; }
Applies the predicate to each row and return true if any row returns true