MCPcopy Create free account
hub / github.com/xdrop/fuzzywuzzy / ToStringFunction

Interface ToStringFunction

src/me/xdrop/fuzzywuzzy/ToStringFunction.java:8–27  ·  view source on GitHub ↗

Transforms an item of type T to a String. @param The type of the item to transform.

Source from the content-addressed store, hash-verified

6 * @param <T> The type of the item to transform.
7 */
8public interface ToStringFunction<T> {
9 /**
10 * Transforms the input item to a string.
11 *
12 * @param item The item to transform.
13 * @return A string to use for comparing the item.
14 */
15 String apply(T item);
16
17 /**
18 * A default ToStringFunction that returns the input string;
19 * used by methods that use plain strings in {@link FuzzySearch}.
20 */
21 ToStringFunction<String> NO_PROCESS = new ToStringFunction<String>() {
22 @Override
23 public String apply(String item) {
24 return item;
25 }
26 };
27}

Callers

nothing calls this directly

Implementers 9

StringProcessorsrc/me/xdrop/fuzzywuzzy/StringProcesso
SimpleRatiosrc/me/xdrop/fuzzywuzzy/ratios/SimpleR
PartialRatiosrc/me/xdrop/fuzzywuzzy/ratios/Partial
WeightedRatiosrc/me/xdrop/fuzzywuzzy/algorithms/Wei
DefaultStringFunctionsrc/me/xdrop/fuzzywuzzy/algorithms/Def
BasicAlgorithmsrc/me/xdrop/fuzzywuzzy/algorithms/Bas
TokenSortsrc/me/xdrop/fuzzywuzzy/algorithms/Tok
RatioAlgorithmsrc/me/xdrop/fuzzywuzzy/algorithms/Rat
TokenSetsrc/me/xdrop/fuzzywuzzy/algorithms/Tok

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…