|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.LevenshteinDistance
public class LevenshteinDistance
Utility for string comparison based on the Levenshtein algo.
Field Summary | |
---|---|
static int |
ACCEPTABLE_DISTANCE
Make 3 characters an acceptable distance for reporting. |
Constructor Summary | |
---|---|
LevenshteinDistance()
|
Method Summary | |
---|---|
static int |
computeLevenshteinDistance(java.lang.CharSequence str1,
java.lang.CharSequence str2)
Compute the distance between two strins using the Levenshtein algorithm, including a case-insensitive string comparison. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACCEPTABLE_DISTANCE
Constructor Detail |
---|
public LevenshteinDistance()
Method Detail |
---|
public static int computeLevenshteinDistance(java.lang.CharSequence str1, java.lang.CharSequence str2)
str1
- first stringstr2
- second string
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |