Package com.intuit.fuzzymatcher.util
Class Utils
- java.lang.Object
-
- com.intuit.fuzzymatcher.util.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Stream<String>getNGrams(String value, int size)static StringgetNormalizedString(String str, Map<String,String> dict)utility method to apply dictionary for normalizing stringsstatic booleanisNumeric(String str)
-
-
-
Method Detail
-
getNormalizedString
public static String getNormalizedString(String str, Map<String,String> dict)
utility method to apply dictionary for normalizing strings- Parameters:
str- A String of element value to be nomalizeddict- A dictonary map containing the mapping of string to normalize- Returns:
- the normalized string
-
isNumeric
public static boolean isNumeric(String str)
-
-