Class StringMatcherFactory
- java.lang.Object
-
- com.intergral.deep.agent.api.utils.string.StringMatcherFactory
-
public class StringMatcherFactory extends Object
Utility type for creatingStringMatcher
.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMatcherFactory
INSTANCE
Defines the singleton for this class.
-
Constructor Summary
Constructors Constructor Description StringMatcherFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMatcher
charMatcher(char ch)
Constructor that creates a matcher from a character.StringMatcher
stringMatcher(String str)
Creates a matcher from a string.
-
-
-
Field Detail
-
INSTANCE
public static final StringMatcherFactory INSTANCE
Defines the singleton for this class.
-
-
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
-
-