public class PlainPrefixMatcher extends PrefixMatcher
ALWAYS_TRUE, myPrefix
Constructor and Description |
---|
PlainPrefixMatcher(java.lang.String prefix) |
PlainPrefixMatcher(java.lang.String prefix,
boolean prefixMatchesOnly) |
Modifier and Type | Method and Description |
---|---|
PrefixMatcher |
cloneWithPrefix(java.lang.String prefix) |
boolean |
isStartMatch(java.lang.String name) |
boolean |
prefixMatches(java.lang.String name) |
getPrefix, isStartMatch, matchingDegree, prefixMatches, sortMatching
public PlainPrefixMatcher(java.lang.String prefix)
public PlainPrefixMatcher(java.lang.String prefix, boolean prefixMatchesOnly)
public boolean isStartMatch(java.lang.String name)
isStartMatch
in class PrefixMatcher
public boolean prefixMatches(java.lang.String name)
prefixMatches
in class PrefixMatcher
public PrefixMatcher cloneWithPrefix(java.lang.String prefix)
cloneWithPrefix
in class PrefixMatcher