public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
levenshtein(String s1,
String s2)
Compares two strings (after
trimming
by using the Levenshtein's Edit Distance of the two
strings. |
public static double levenshtein(String s1, String s2)
trimming
by using the Levenshtein's Edit Distance of the two
strings. Does not return the Integer number of changes but
1-(changes/maxStringSizeAfterTrim)s1 - the first strings2 - the second stringIllegalArgumentException - if any of the two parsed strings is NULLCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.