Class StringMatcherFactory

    • Field Detail

    • Constructor Detail

      • StringMatcherFactory

        public StringMatcherFactory()
    • Method Detail

      • stringMatcher

        public StringMatcher stringMatcher​(String str)
        Creates a matcher from a string.
        Parameters:
        str - the string to match, null or empty matches nothing
        Returns:
        a new Matcher for the given String
      • charMatcher

        public StringMatcher charMatcher​(char ch)
        Constructor that creates a matcher from a character.
        Parameters:
        ch - the character to match, must not be null
        Returns:
        a new Matcher for the given char