public class FastSuffixMatcher extends Object
| Modifier and Type | Method and Description |
|---|---|
static FastSuffixMatcher |
create(FastSuffixMatcher existing,
List<MatchRule> rules)
Creates a new matcher with the provided matching rules.
|
static FastSuffixMatcher |
create(List<MatchRule> rules)
Creates a new matcher with the provided matching rules.
|
Boolean |
isMatch(String candidate) |
MatchResult |
match(String candidate)
Matches an input string to the list of match rules, and returns MatchResult accordingly.
|
public static FastSuffixMatcher create(List<MatchRule> rules)
rules - - One or more matching rules to apply when Match
is calledpublic static FastSuffixMatcher create(FastSuffixMatcher existing, List<MatchRule> rules)
existing - - An existing matcher whose rules are to be baseline Matchrules - - One or more matching rules to apply when Match
is calledpublic Boolean isMatch(String candidate)
candidate - - A string to match to the list of match rulespublic MatchResult match(String candidate)
candidate - - a string to matchCopyright © 2023. All rights reserved.