Package me.xdrop.fuzzywuzzy.algorithms
Class DefaultStringFunction
- java.lang.Object
-
- me.xdrop.fuzzywuzzy.algorithms.DefaultStringFunction
-
- All Implemented Interfaces:
ToStringFunction<java.lang.String>
public class DefaultStringFunction extends java.lang.Object implements ToStringFunction<java.lang.String>
-
-
Field Summary
-
Fields inherited from interface me.xdrop.fuzzywuzzy.ToStringFunction
NO_PROCESS
-
-
Constructor Summary
Constructors Constructor Description DefaultStringFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringapply(java.lang.String in)Performs the default string processing on the input stringstatic java.lang.StringsubNonAlphaNumeric(java.lang.String in, java.lang.String sub)Substitute non alphanumeric characters.
-
-
-
Method Detail
-
subNonAlphaNumeric
public static java.lang.String subNonAlphaNumeric(java.lang.String in, java.lang.String sub)Substitute non alphanumeric characters.- Parameters:
in- The input stringsub- The string to substitute with- Returns:
- The replaced string
-
apply
public java.lang.String apply(java.lang.String in)
Performs the default string processing on the input string- Specified by:
applyin interfaceToStringFunction<java.lang.String>- Parameters:
in- Input string- Returns:
- The processed string
-
-