simpleMatch(String[] patterns,
String str)
Match a String against the given patterns, supporting the following simple
pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
static boolean
simpleMatch(String pattern,
String str)
Match a String against the given pattern, supporting the following simple
pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
public static boolean simpleMatch(String pattern,
String str)
Match a String against the given pattern, supporting the following simple
pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
Parameters:
pattern - the pattern to match against
str - the String to match
Returns:
whether the String matches the given pattern
simpleMatch
public static boolean simpleMatch(String[] patterns,
String str)
Match a String against the given patterns, supporting the following simple
pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
Parameters:
patterns - the patterns to match against
str - the String to match
Returns:
whether the String matches any of the given patterns