public final class Distance extends Object
The GNU Lesser General Public License for details.
Modifier | Constructor and Description |
---|---|
private |
Distance()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static int |
getLevenshteinDistance(String source,
String target)
Compute the LevenshteinDistance between two strings.
|
public static int getLevenshteinDistance(String source, String target)
source
- the baseline texttarget
- the changed text