Class MatcherConstructor


  • public final class MatcherConstructor
    extends java.lang.Object
    Matcher constructors.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AbstractMatcher contains​(java.lang.String matcher)
      Create a matcher for a containing string
      static AbstractMatcher contains​(java.util.regex.Pattern pattern)
      Create a matcher for a containing pattern
      static AbstractMatcher endsWith​(java.lang.String matcher)
      Create a matcher filtering by a string that ends with the matcher
      static AbstractMatcher endsWith​(java.util.regex.Pattern pattern)
      Create a matcher filtering by a string that ends with the pattern
      static AbstractMatcher equal​(java.lang.String matcher)
      Create a matcher to equal the string matcher
      static AbstractMatcher notContains​(java.lang.String matcher)
      Create a matcher for not containing a string
      static AbstractMatcher notContains​(java.util.regex.Pattern pattern)
      Create a matcher for not containing the pattern
      static AbstractMatcher notEndsWith​(java.lang.String matcher)
      Create a matcher filtering by a string that not ends with the string params
      static AbstractMatcher notEndsWith​(java.util.regex.Pattern pattern)
      Create a matcher filtering by a string that not ends with the pattern params
      static AbstractMatcher notStartsWith​(java.lang.String matcher)
      Create a matcher filtering by a string that not starts with the string params
      static AbstractMatcher notStartsWith​(java.util.regex.Pattern pattern)
      Create a matcher filtering by a string that not starts with the pattern params
      static java.util.regex.Pattern regex​(java.lang.String pattern)
      Create a Pattern given a regex.
      static AbstractMatcher startsWith​(java.lang.String matcher)
      Create a matcher filtering by a string that start with the matcher
      static AbstractMatcher startsWith​(java.util.regex.Pattern pattern)
      Create a matcher filtering by a string that start with the matcher
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • contains

        public static AbstractMatcher contains​(java.lang.String matcher)
        Create a matcher for a containing string
        Parameters:
        matcher - string matcher
        Returns:
        matcher object
      • contains

        public static AbstractMatcher contains​(java.util.regex.Pattern pattern)
        Create a matcher for a containing pattern
        Parameters:
        pattern - pattern object
        Returns:
        matcher object
      • notContains

        public static AbstractMatcher notContains​(java.lang.String matcher)
        Create a matcher for not containing a string
        Parameters:
        matcher - string matcher
        Returns:
        matcher object
      • notContains

        public static AbstractMatcher notContains​(java.util.regex.Pattern pattern)
        Create a matcher for not containing the pattern
        Parameters:
        pattern - string pattern
        Returns:
        matcher object
      • equal

        public static AbstractMatcher equal​(java.lang.String matcher)
        Create a matcher to equal the string matcher
        Parameters:
        matcher - string matcher
        Returns:
        matcher object
      • regex

        public static java.util.regex.Pattern regex​(java.lang.String pattern)
        Create a Pattern given a regex. The regex is compile.
        Parameters:
        pattern - string pattern
        Returns:
        pattern
      • startsWith

        public static AbstractMatcher startsWith​(java.lang.String matcher)
        Create a matcher filtering by a string that start with the matcher
        Parameters:
        matcher - string matcher
        Returns:
        matcher object
      • startsWith

        public static AbstractMatcher startsWith​(java.util.regex.Pattern pattern)
        Create a matcher filtering by a string that start with the matcher
        Parameters:
        pattern - pattern
        Returns:
        matcher object
      • endsWith

        public static AbstractMatcher endsWith​(java.lang.String matcher)
        Create a matcher filtering by a string that ends with the matcher
        Parameters:
        matcher - string matcher
        Returns:
        matcher
      • endsWith

        public static AbstractMatcher endsWith​(java.util.regex.Pattern pattern)
        Create a matcher filtering by a string that ends with the pattern
        Parameters:
        pattern - pattern
        Returns:
        matcher
      • notStartsWith

        public static AbstractMatcher notStartsWith​(java.lang.String matcher)
        Create a matcher filtering by a string that not starts with the string params
        Parameters:
        matcher - string matcher
        Returns:
        matcher
      • notStartsWith

        public static AbstractMatcher notStartsWith​(java.util.regex.Pattern pattern)
        Create a matcher filtering by a string that not starts with the pattern params
        Parameters:
        pattern - pattern
        Returns:
        matcher
      • notEndsWith

        public static AbstractMatcher notEndsWith​(java.lang.String matcher)
        Create a matcher filtering by a string that not ends with the string params
        Parameters:
        matcher - string matcher
        Returns:
        matcher
      • notEndsWith

        public static AbstractMatcher notEndsWith​(java.util.regex.Pattern pattern)
        Create a matcher filtering by a string that not ends with the pattern params
        Parameters:
        pattern - pattern
        Returns:
        matcher