Package me.xdrop.fuzzywuzzy
Interface ToStringFunction<T>
-
- Type Parameters:
T- The type of the item to transform.
- All Known Implementing Classes:
DefaultStringFunction,DefaultStringProcessor,NoProcess,StringProcessor
public interface ToStringFunction<T>Transforms an item of type T to a String.
-
-
Field Summary
Fields Modifier and Type Field Description static ToStringFunction<java.lang.String>NO_PROCESSA default ToStringFunction that returns the input string; used by methods that use plain strings inFuzzySearch.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringapply(T item)Transforms the input item to a string.
-
-
-
Field Detail
-
NO_PROCESS
static final ToStringFunction<java.lang.String> NO_PROCESS
A default ToStringFunction that returns the input string; used by methods that use plain strings inFuzzySearch.
-
-
Method Detail
-
apply
java.lang.String apply(T item)
Transforms the input item to a string.- Parameters:
item- The item to transform.- Returns:
- A string to use for comparing the item.
-
-