public class SetHorspool extends Object implements StringSearchAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
SetHorspool.Factory |
| Constructor and Description |
|---|
SetHorspool(Collection<String> patterns) |
SetHorspool(Collection<String> patterns,
boolean relaxed) |
| Modifier and Type | Method and Description |
|---|---|
StringFinder |
createFinder(CharProvider chars,
StringFinderOption... options)
creates a StringFinder instance from the pattern (given by the current instance) and the given document.
|
int |
getPatternLength() |
boolean |
isCompactRange(List<char[]> charpatterns,
int minLength) |
String |
toString() |
public SetHorspool(Collection<String> patterns)
public SetHorspool(Collection<String> patterns, boolean relaxed)
public boolean isCompactRange(List<char[]> charpatterns, int minLength)
public StringFinder createFinder(CharProvider chars, StringFinderOption... options)
StringSearchAlgorithmcreateFinder in interface StringSearchAlgorithmchars - the given document wrapped into a CharProvideroptions - the configuration options for the string finderpublic int getPatternLength()
getPatternLength in interface StringSearchAlgorithmCopyright © 2017. All rights reserved.