public class BetterPrefixMatcher extends PrefixMatcher
Modifier and Type | Class and Description |
---|---|
static class |
BetterPrefixMatcher.AutoRestarting |
protected static class |
BetterPrefixMatcher.MatchingOutcome |
ALWAYS_TRUE, myPrefix
Constructor and Description |
---|
BetterPrefixMatcher(PrefixMatcher original,
int minMatchingDegree) |
Modifier and Type | Method and Description |
---|---|
PrefixMatcher |
cloneWithPrefix(java.lang.String prefix) |
protected BetterPrefixMatcher |
createCopy(PrefixMatcher original,
int degree) |
BetterPrefixMatcher |
improve(CompletionResult result) |
boolean |
isStartMatch(java.lang.String name) |
int |
matchingDegree(java.lang.String string) |
boolean |
prefixMatches(java.lang.String name) |
protected BetterPrefixMatcher.MatchingOutcome |
prefixMatchesEx(java.lang.String name) |
getPrefix, isStartMatch, prefixMatches, sortMatching
public BetterPrefixMatcher(PrefixMatcher original, int minMatchingDegree)
public BetterPrefixMatcher improve(CompletionResult result)
protected BetterPrefixMatcher createCopy(PrefixMatcher original, int degree)
public boolean prefixMatches(java.lang.String name)
prefixMatches
in class PrefixMatcher
protected BetterPrefixMatcher.MatchingOutcome prefixMatchesEx(java.lang.String name)
public boolean isStartMatch(java.lang.String name)
isStartMatch
in class PrefixMatcher
public int matchingDegree(java.lang.String string)
matchingDegree
in class PrefixMatcher
public PrefixMatcher cloneWithPrefix(java.lang.String prefix)
cloneWithPrefix
in class PrefixMatcher