Class WildcardMatcher


  • public class WildcardMatcher
    extends java.lang.Object
    Checks whether a string matches a given wildcard pattern.
    • Constructor Detail

    • Method Detail

      • matches

        public boolean matches​(java.lang.CharSequence input)
        Checks whether a string matches a given wildcard pattern.
        Parameters:
        input - the input string
        Returns:
        true if string matches the pattern, otherwise false
      • separate

        public int separate​(java.lang.CharSequence input)
      • hasNext

        public boolean hasNext()
      • hasPrev

        public boolean hasPrev()
      • next

        public java.lang.String next()
      • previous

        public java.lang.String previous()
      • find

        public java.lang.String find()
      • find

        public java.lang.String find​(int group)
      • getSeparatorCount

        public int getSeparatorCount()
      • matches

        public static boolean matches​(WildcardPattern pattern,
                                      java.lang.CharSequence input)
        Checks whether a string matches a given wildcard pattern.
        Parameters:
        pattern - the pattern to match
        input - the character sequence to be matched
        Returns:
        true if string matches the pattern, otherwise false