public static boolean containsString ( @ Nullable final Iterable < String > pIterable , @ Nullable final String pSearched , final boolean pCaseSensitive ) { boolean result = false ; if ( pSearched != null && pIterable != null ) { for ( String s : pIterable ) { if ( stringEquals ( pSearched , s , pCaseSensitive ) ) { result = true ; break ; } } } return result ; }
Search for a String in a collection .