LevenshteinDistance
instead.@Immutable @Deprecated public final class LevenshteinDistance extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getDistance(char[] aStr1,
char[] aStr2)
Deprecated.
Get the distance of the 2 strings, using the costs 1 for insertion,
deletion and substitution.
|
static int |
getDistance(char[] aStr1,
char[] aStr2,
int nCostInsert,
int nCostDelete,
int nCostSubstitution)
Deprecated.
|
static int |
getDistance(String sStr1,
String sStr2)
Deprecated.
Get the distance of the 2 strings, using the costs 1 for insertion,
deletion and substitution.
|
static int |
getDistance(String sStr1,
String sStr2,
int nCostInsert,
int nCostDelete,
int nCostSubstitution)
Deprecated.
|
public static int getDistance(@Nullable char[] aStr1, @Nullable char[] aStr2)
aStr1 - First string.aStr2 - Second string.public static int getDistance(@Nullable char[] aStr1, @Nullable char[] aStr2, @Nonnegative int nCostInsert, @Nonnegative int nCostDelete, @Nonnegative int nCostSubstitution)
public static int getDistance(@Nullable String sStr1, @Nullable String sStr2)
sStr1 - First string.sStr2 - second string.public static int getDistance(@Nullable String sStr1, @Nullable String sStr2, @Nonnegative int nCostInsert, @Nonnegative int nCostDelete, @Nonnegative int nCostSubstitution)
Copyright © 2014–2015 Philip Helger. All rights reserved.