public class StringMatcher extends Object
Constructor and Description |
---|
StringMatcher(String[] candidates)
Constructs a StringMatcher instance.
|
Modifier and Type | Method and Description |
---|---|
int |
match(Object match)
Matches the string to the candidates.
|
public StringMatcher(String[] candidates)
candidates
- the candidates to matchpublic int match(Object match)
match
- object to match