类 MatchUtil


  • public class MatchUtil
    extends Object
    判断字符串是否与规则匹配
    作者:
    yuye
    • 构造器详细资料

      • MatchUtil

        public MatchUtil()
    • 方法详细资料

      • isMatch

        public static Boolean isMatch​(String rule,
                                      String str)
        判断带通配符的字符串与另一个字符串是否匹配
        参数:
        rule - 规则
        str - 字符串
        返回:
        boolean