类 MatchUtils

java.lang.Object
com.alibaba.bytekit.utils.MatchUtils

public class MatchUtils extends Object
from org.apache.commons.io.FilenameUtils
作者:
hengyunabc
  • 构造器详细资料

    • MatchUtils

      public MatchUtils()
  • 方法详细资料

    • wildcardMatch

      public static boolean wildcardMatch(String str, String wildcardMatcher)
      The wildcard matcher uses the characters '?' and '*' to represent a single or multiple wildcard characters.
      参数:
      str -
      wildcardMatcher -
      返回:
    • wildcardMatch

      public static boolean wildcardMatch(String str, String wildcardMatcher, boolean sensitive)
      The wildcard matcher uses the characters '?' and '*' to represent a single or multiple wildcard characters.
      参数:
      str -
      wildcardMatcher -
      sensitive - if sensitive is true, str and wildcardMatcher will toLowerCase.
      返回: