Class WildCardMatcher

  • All Implemented Interfaces:

    public class WildCardMatcher
    extends NameMatcher
    Matcher built from path segments containing wildcards. This matcher converts glob wildcards to Java Pattern's.

    This class is immutable and thread safe.

    • Method Detail

      • matches

        public boolean matches​(String segment,
                               int startIncl,
                               int endExcl)
        Matches only part of given string
        Specified by:
        matches in interface IMatcher
        matches in class NameMatcher
        segment - string which is not null, but might be empty
        startIncl - start index, inclusive
        endExcl - end index, exclusive
        true if this matcher pattern matches given string