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 StringMatcherFactoryINSTANCEDefines the singleton for this class.
-
Constructor Summary
Constructors Constructor Description StringMatcherFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMatchercharMatcher(char ch)Constructor that creates a matcher from a character.StringMatcherstringMatcher(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
-
-