@Immutable public class WeightedLevenshtein extends Object implements StringDistance
| Constructor and Description |
|---|
WeightedLevenshtein(CharacterSubstitutionInterface charsub)
Instatiate with provided character substitution.
|
public WeightedLevenshtein(CharacterSubstitutionInterface charsub)
charsub - The strategy to determine character substitution weights.public final double distance(String s1, String s2)
distance in interface StringDistances1 - The first string to compare.s2 - The second string to compare.NullPointerException - if s1 or s2 is null.Copyright © 2017. All rights reserved.