public class LevenshteinDistance extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPTABLE_DISTANCE
Make 3 characters an acceptable distance for reporting.
|
Constructor and Description |
---|
LevenshteinDistance() |
Modifier and Type | Method and Description |
---|---|
static int |
computeLevenshteinDistance(CharSequence str1,
CharSequence str2)
Compute the distance between two strins using the Levenshtein algorithm,
including a case-insensitive string comparison.
|
public static final int ACCEPTABLE_DISTANCE
public static int computeLevenshteinDistance(CharSequence str1, CharSequence str2)
str1
- first stringstr2
- second string