public final class MatcherConstructor extends Object
| Modifier and Type | Method and Description |
|---|---|
static Matcher |
contains(Pattern pattern)
Create a matcher for a containing pattern
|
static Matcher |
contains(String matcher)
Create a matcher for a containing string
|
static Matcher |
endsWith(Pattern pattern)
Create a matcher filtering by a string that ends with the pattern
|
static Matcher |
endsWith(String matcher)
Create a matcher filtering by a string that ends with the matcher
|
static Matcher |
equal(String matcher)
Create a matcher to equal the string matcher
|
static Matcher |
notContains(Pattern pattern)
Create a matcher for not containing the pattern
|
static Matcher |
notContains(String matcher)
Create a matcher for not containing a string
|
static Matcher |
notEndsWith(Pattern pattern)
Create a matcher filtering by a string that not ends with the pattern params
|
static Matcher |
notEndsWith(String matcher)
Create a matcher filtering by a string that not ends with the string params
|
static Matcher |
notStartsWith(Pattern pattern)
Create a matcher filtering by a string that not starts with the pattern params
|
static Matcher |
notStartsWith(String matcher)
Create a matcher filtering by a string that not starts with the string params
|
static Pattern |
regex(String pattern)
Create a Pattern given a regex.
|
static Matcher |
startsWith(Pattern pattern)
Create a matcher filtering by a string that start with the matcher
|
static Matcher |
startsWith(String matcher)
Create a matcher filtering by a string that start with the matcher
|
public static Matcher contains(String matcher)
matcher - string matcherpublic static Matcher contains(Pattern pattern)
pattern - pattern objectpublic static Matcher notContains(String matcher)
matcher - string matcherpublic static Matcher notContains(Pattern pattern)
pattern - string patternpublic static Matcher equal(String matcher)
matcher - string matcherpublic static Pattern regex(String pattern)
pattern - string patternpublic static Matcher startsWith(String matcher)
matcher - string matcherpublic static Matcher startsWith(Pattern pattern)
pattern - patternpublic static Matcher endsWith(String matcher)
matcher - string matcherpublic static Matcher endsWith(Pattern pattern)
pattern - patternpublic static Matcher notStartsWith(String matcher)
matcher - string matcherpublic static Matcher notStartsWith(Pattern pattern)
pattern - patternpublic static Matcher notEndsWith(String matcher)
matcher - string matcherCopyright © 2015 AConsulting. All Rights Reserved.