protected static boolean matches(final String toMatch, final List<Pattern> patternList) {

        for (final Pattern current : patternList) {
            if (current.matcher(toMatch).matches()) {
                return true;
            }
        }

        return false;
    }
protected static boolean matches(final String toMatch, final List<Pattern> patternList) {

        for (final Pattern current : patternList) {
            if (current.matcher(toMatch).matches()) {
                return true;
            }
        }

        return false;
    }
protected static boolean matches ( final String toMatch , final List < Pattern > patternList ) { for ( final Pattern current : patternList ) { if ( current . matcher ( toMatch ) . matches ( ) ) { return true ; } } return false ; }
Matches the provided {@code toMatch} string with all Patterns in the patternList.
If one pattern matches, this method returns {@code true}.

@param toMatch     The string to match to every Pattern in the supplied patternList.
@param patternList The List of Patterns to use in matching.
@return {@code true} if one pattern in the patternList matches, this method returns {@code true}.
Matches the provided { @code toMatch } string with all Patterns in the patternList . If one pattern matches this method returns { @code true } .