private boolean startsWithAFilteredPAttern ( String string ) { Iterator < String > iterator = filteredFrames . iterator ( ) ; while ( iterator . hasNext ( ) ) { if ( string . trim ( ) . startsWith ( iterator . next ( ) ) ) { return true ; } } return false ; }
Check if the given string starts with any of the filtered patterns .