| java.lang.Object org.springframework.util.PatternMatchUtils
PatternMatchUtils | abstract public class PatternMatchUtils (Code) | | Utility methods for simple pattern matching, in particular for
Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.
author: Juergen Hoeller since: 2.0 |
Method Summary | |
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. | 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. |
simpleMatch | public static boolean simpleMatch(String pattern, String str)(Code) | | 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 Parameters: str - the String to match whether the String matches the given pattern |
simpleMatch | public static boolean simpleMatch(String[] patterns, String str)(Code) | | 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 Parameters: str - the String to match whether the String matches any of the given patterns |
|
|