@Immutable public class NormalizedLevenshtein extends Object implements NormalizedStringDistance, NormalizedStringSimilarity
| Constructor and Description |
|---|
NormalizedLevenshtein() |
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.public final double similarity(String s1, String s2)
similarity in interface StringSimilaritys1 - The first string to compare.s2 - The second string to compare.NullPointerException - if s1 or s2 is null.Copyright © 2017. All rights reserved.