org.springframework.util

## 类 PatternMatchUtils

- java.lang.Object
- - org.springframework.util.PatternMatchUtils

-     public abstract class PatternMatchUtils
      extends Object

  Utility methods for simple pattern matching, in particular for Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.
  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `PatternMatchUtils()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static boolean` | `simpleMatch(String[] patterns, String str)` 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.
    `static boolean` | `simpleMatch(String pattern, String str)` Match a String against the given pattern, 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.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### PatternMatchUtils

          public PatternMatchUtils()

  - ### 方法详细资料

    - #### simpleMatch

          public static boolean simpleMatch(@Nullable
                                            String pattern,
                                            @Nullable
                                            String str)

      Match a String against the given pattern, 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.
      参数:
        `pattern` - the pattern to match against
        `str` - the String to match
      返回:
        whether the String matches the given pattern

    - #### simpleMatch

          public static boolean simpleMatch(@Nullable
                                            String[] patterns,
                                            String str)

      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.
      参数:
        `patterns` - the patterns to match against
        `str` - the String to match
      返回:
        whether the String matches any of the given patterns