public static boolean matches ( Pattern patternMatcher , Object ... elements ) { if ( patternMatcher == null ) { return true ; } for ( Object element : elements ) { if ( matches ( patternMatcher , element ) ) { return true ; } } return false ; }
Matches a set of elements in a case insensitive way .