public class CollectionMatcher extends StringMatcher
Constructor and Description |
---|
CollectionMatcher(java.util.Set<java.lang.String> set) |
CollectionMatcher(java.lang.String... strings) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String string)
Checks whether the given string matches.
|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
prefix
public CollectionMatcher(java.util.Set<java.lang.String> set)
public CollectionMatcher(java.lang.String... strings)
public boolean matches(java.lang.String string)
StringMatcher
matches
in class StringMatcher
string
- the string to match.protected boolean matches(java.lang.String string, int beginOffset, int endOffset)
StringMatcher
matches
in class StringMatcher
string
- the string to match.beginOffset
- the start offset of the substring (inclusive).endOffset
- the end offset of the substring (exclusive).