Class Matchers.StringMatcher
java.lang.Object
io.grpc.xds.internal.Matchers.StringMatcher
- Enclosing class:
Matchers
Represents various ways to match a string .
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Matchers.StringMatcherforContains(String contains) The input string should contain this substring.static Matchers.StringMatcherThe input string should exactly matches the specified string.static Matchers.StringMatcherThe input string should have the prefix.static Matchers.StringMatcherforSafeRegEx(com.google.re2j.Pattern regEx) The input string should match this pattern.static Matchers.StringMatcherThe input string should have the suffix.booleanReturns the matching result for this string.
-
Constructor Details
-
StringMatcher
public StringMatcher()
-
-
Method Details
-
forExact
The input string should exactly matches the specified string. -
forPrefix
The input string should have the prefix. -
forSuffix
The input string should have the suffix. -
forSafeRegEx
The input string should match this pattern. -
forContains
The input string should contain this substring. -
matches
Returns the matching result for this string.
-