public class WuManber extends Object implements StringSearchAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
WuManber.Factory |
| Constructor and Description |
|---|
WuManber(Collection<String> patterns) |
| 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() |
static int |
hashHash(char[] block) |
static int |
shiftHash(char[] block) |
String |
toString() |
public WuManber(Collection<String> patterns)
public static int shiftHash(char[] block)
public static int hashHash(char[] block)
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.