code: public static boolean simpleMatch(String[] patterns, String str) {
      if (patterns != null) {
        for (int i = 0; i < patterns.length; i++) {
          if (simpleMatch(patterns[i], str)) {
            return true;
          }
        }
      }
      return false;
    }
docs: Match a String against the given patterns, supporting the following simple
  pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an
  arbitrary number of pattern parts), as well as direct equality.
  
  @param patterns the patterns to match against
  @param str      the String to match
  @return whether the String matches any of the given patterns