| Package | Description |
|---|---|
| me.xdrop.fuzzywuzzy | |
| me.xdrop.fuzzywuzzy.algorithms | |
| me.xdrop.fuzzywuzzy.ratios |
| Modifier and Type | Class | Description |
|---|---|---|
class |
StringProcessor |
Deprecated.
Use
ToStringFunction<String> instead. |
| Modifier and Type | Field | Description |
|---|---|---|
static ToStringFunction<String> |
ToStringFunction.NO_PROCESS |
A default ToStringFunction that returns the input string;
used by methods that use plain strings in
FuzzySearch. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
Ratio.apply(String s1,
String s2,
ToStringFunction<String> sp) |
Applies the ratio between the two strings
|
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractAll(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction) |
Creates a list of
ExtractedResult which contain all the choices with
their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractAll(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
int cutoff) |
Creates a list of
ExtractedResult which contain all the choices with
their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractAll(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Creates a list of
ExtractedResult which contain all the choices with
their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractAll(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func,
int cutoff) |
Creates a list of
ExtractedResult which contain all the choices with
their corresponding score where higher is more similar |
<T> BoundExtractedResult<T> |
Extractor.extractOne(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Find the single best match above a score in a list of choices.
|
static <T> BoundExtractedResult<T> |
FuzzySearch.extractOne(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction) |
Find the single best match above a score in a list of choices.
|
static <T> BoundExtractedResult<T> |
FuzzySearch.extractOne(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Find the single best match above a score in a list of choices.
|
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractSorted(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction) |
Creates a sorted list of
ExtractedResult which contain all the choices
with their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractSorted(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
int cutoff) |
Creates a sorted list of
ExtractedResult which contain all the choices
with their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractSorted(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Creates a sorted list of
ExtractedResult which contain all the choices
with their corresponding score where higher is more similar |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractSorted(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func,
int cutoff) |
Creates a sorted list of
ExtractedResult which contain all the choices
with their corresponding score where higher is more similar |
<T> List<BoundExtractedResult<T>> |
Extractor.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
<T> List<BoundExtractedResult<T>> |
Extractor.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func,
int limit) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
int limit) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
int limit,
int cutoff) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func,
int limit) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
static <T> List<BoundExtractedResult<T>> |
FuzzySearch.extractTop(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func,
int limit,
int cutoff) |
Creates a sorted list of
ExtractedResult which contain the
top @param limit most similar choices |
<T> List<BoundExtractedResult<T>> |
Extractor.extractWithoutOrder(String query,
Collection<T> choices,
ToStringFunction<T> toStringFunction,
Applicable func) |
Returns the list of choices with their associated scores of similarity in a list
of
ExtractedResult |
static int |
FuzzySearch.partialRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Inconsistent substrings lead to problems in matching.
|
static int |
FuzzySearch.ratio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Calculates a Levenshtein simple ratio between the strings.
|
static int |
FuzzySearch.tokenSetPartialRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Splits the strings into tokens and computes intersections and remainders
between the tokens of the two strings.
|
static int |
FuzzySearch.tokenSetRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Splits the strings into tokens and computes intersections and remainders
between the tokens of the two strings.
|
static int |
FuzzySearch.tokenSortPartialRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Find all alphanumeric tokens in the string and sort
those tokens and then take ratio of resulting
joined strings.
|
static int |
FuzzySearch.tokenSortRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Find all alphanumeric tokens in the string and sort
those tokens and then take ratio of resulting
joined strings.
|
static int |
FuzzySearch.weightedRatio(String s1,
String s2,
ToStringFunction<String> stringFunction) |
Calculates a weighted ratio between the different algorithms for best results
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DefaultStringFunction |
|
class |
DefaultStringProcessor |
Deprecated.
Use
DefaultStringFunction instead. |
class |
NoProcess |
Deprecated.
Use
ToStringFunction#NO_PROCESS instead. |
| Modifier and Type | Method | Description |
|---|---|---|
ToStringFunction<String> |
BasicAlgorithm.getStringFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract int |
BasicAlgorithm.apply(String s1,
String s2,
ToStringFunction<String> stringProcessor) |
|
abstract int |
RatioAlgorithm.apply(String s1,
String s2,
Ratio ratio,
ToStringFunction<String> stringFunction) |
|
int |
RatioAlgorithm.apply(String s1,
String s2,
ToStringFunction<String> stringFunction) |
|
int |
TokenSet.apply(String s1,
String s2,
Ratio ratio,
ToStringFunction<String> stringFunction) |
|
int |
TokenSort.apply(String s1,
String s2,
Ratio ratio,
ToStringFunction<String> stringFunction) |
|
int |
WeightedRatio.apply(String s1,
String s2,
ToStringFunction<String> stringProcessor) |
|
BasicAlgorithm |
BasicAlgorithm.with(ToStringFunction<String> stringFunction) |
| Constructor | Description |
|---|---|
BasicAlgorithm(ToStringFunction<String> stringFunction) |
|
RatioAlgorithm(ToStringFunction<String> stringFunction) |
|
RatioAlgorithm(ToStringFunction<String> stringFunction,
Ratio ratio) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
PartialRatio.apply(String s1,
String s2,
ToStringFunction<String> sp) |
|
int |
SimpleRatio.apply(String s1,
String s2,
ToStringFunction<String> sp) |
Copyright © 2018. All rights reserved.