public final class DefaultPropertyNameMatcher extends Object implements PropertyNameMatcher
| Constructor and Description |
|---|
DefaultPropertyNameMatcher(String column,
int from,
boolean exactMatch,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
int |
asScore() |
static PropertyNameMatcher |
exact(String value) |
static boolean |
isSeparatorChar(char charColumn) |
List<PropertyNameMatcherKeyValuePair> |
keyValuePairs() |
PropertyNameMatch |
matches(CharSequence property) |
PropertyNameMatch |
matches(CharSequence property,
boolean tryPlural) |
IndexedColumn |
matchIndex() |
static PropertyNameMatcher |
of(String value) |
PropertyNameMatch |
partialMatch(CharSequence property) |
PropertyNameMatch |
partialMatch(CharSequence property,
boolean tryPlural) |
PropertyNameMatch |
speculativeMatch() |
static int |
toScore(String property) |
static int |
toScore(String property,
int from) |
String |
toString() |
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive)
public PropertyNameMatch matches(CharSequence property)
matches in interface PropertyNameMatcherpublic PropertyNameMatch matches(CharSequence property, boolean tryPlural)
matches in interface PropertyNameMatcherpublic PropertyNameMatch partialMatch(CharSequence property)
partialMatch in interface PropertyNameMatcherpublic PropertyNameMatch partialMatch(CharSequence property, boolean tryPlural)
partialMatch in interface PropertyNameMatcherpublic IndexedColumn matchIndex()
matchIndex in interface PropertyNameMatcherpublic static boolean isSeparatorChar(char charColumn)
public PropertyNameMatch speculativeMatch()
speculativeMatch in interface PropertyNameMatcherpublic List<PropertyNameMatcherKeyValuePair> keyValuePairs()
keyValuePairs in interface PropertyNameMatcherpublic int asScore()
asScore in interface PropertyNameMatcherpublic static int toScore(String property)
public static int toScore(String property, int from)
public static PropertyNameMatcher of(String value)
public static PropertyNameMatcher exact(String value)
Copyright © 2019. All rights reserved.