提交 543a125d 编写于 作者: K kohsuke

overloaded version for convenience.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4262 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f354f1fa
......@@ -19,6 +19,8 @@
*/
package hudson.util;
import java.util.Collection;
/**
* Computes the string edit distance.
*
......@@ -61,6 +63,10 @@ public class EditDistance {
return r;
}
public static String findNearest( String key, Collection<String> group ) {
return findNearest(key,group.toArray(new String[group.size()]));
}
/** cost vector. */
private int[] cost;
/** back buffer. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册