Applicable, Ratiopublic class SimpleRatio extends Object implements Ratio
| Constructor | Description |
|---|---|
SimpleRatio() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
apply(String s1,
String s2) |
Computes a simple Levenshtein distance ratio between the strings
|
int |
apply(String s1,
String s2,
ToStringFunction<String> sp) |
Applies the ratio between the two strings
|
public int apply(String s1, String s2)
apply in interface Applicableapply in interface Ratios1 - Input strings2 - Input stringpublic int apply(String s1, String s2, ToStringFunction<String> sp)
RatioCopyright © 2018. All rights reserved.