public class GeneralEditDistances extends Object
Modifier and Type | Method and Description |
---|---|
static int |
atMostOneError(CharSequence s1,
CharSequence s2)
Compares two strings for at most one insert/delete/substitute difference.
|
static GeneralEditDistance |
getLevenshteinDistance(CharSequence pattern)
Generates an GeneralEditDistance engine for a particular pattern string
based on Levenshtein distance.
|
public static int atMostOneError(CharSequence s1, CharSequence s2)
s1
- one string to be compareds2
- the other string to be comparedpublic static GeneralEditDistance getLevenshteinDistance(CharSequence pattern)
pattern
- a string from which distance computations are desiredCopyright © 2018. All rights reserved.