Class WildcardMatcher


  • public class WildcardMatcher
    extends Object
    Wildcard matcher.
    • Constructor Detail

      • WildcardMatcher

        public WildcardMatcher()
    • Method Detail

      • matches

        public static boolean matches​(String text,
                                      String pattern)
        Performs a wildcard matching for the text and pattern provided.
        Parameters:
        text - the text to be tested for matches.
        pattern - the pattern to be matched for. This can contain the wildcard character '*' (asterisk).
        Returns:
        true if a match is found, false otherwise.
      • matchesAny

        public static boolean matchesAny​(String[] patterns,
                                         String text)