StringDistancepublic final class LevensteinDistance extends Object implements StringDistance
| Constructor | Description |
|---|---|
LevensteinDistance() |
Optimized to run a bit faster than the static getDistance().
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
getDistance(String target,
String other) |
Returns a float between 0 and 1 based on how similar the specified strings are to one another.
|
public LevensteinDistance()
public float getDistance(String target, String other)
StringDistancegetDistance in interface StringDistancetarget - The first string.other - The second string.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.