| java.lang.Object com.sun.xml.bind.v2.util.EditDistance
EditDistance | public class EditDistance (Code) | | Computes the string edit distance.
Refer to a computer science text book for the definition
of the "string edit distance".
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
editDistance | public static int editDistance(String a, String b)(Code) | | Computes the edit distance between two strings.
The complexity is O(nm) where n=a.length() and m=b.length().
|
findNearest | public static String findNearest(String key, String[] group)(Code) | | Finds the string in the group closest to
key and returns it.
null if group.length==0. |
findNearest | public static String findNearest(String key, Collection<String> group)(Code) | | Finds the string in the group closest to
key and returns it.
null if group.length==0. |
|
|