public abstract class StringMatcher extends Object
| Constructor and Description |
|---|
StringMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String string)
Checks whether the given string matches.
|
protected abstract boolean |
matches(String string,
int offset,
int length)
Checks whether the given substring matches.
|
public boolean matches(String string)
string - the string to match.protected abstract boolean matches(String string, int offset, int length)
string - the string to match.offset - the start offset of the substring.length - the length of the substring.Copyright © 2016. All rights reserved.