public class LongestCommonSubstring extends java.lang.Object implements StringComparator
Modifier and Type | Class and Description |
---|---|
static class |
LongestCommonSubstring.Formula
Represents the different formulas we can use to compute similarity.
|
Constructor and Description |
---|
LongestCommonSubstring() |
Modifier and Type | Method and Description |
---|---|
double |
compare(java.lang.String s1,
java.lang.String s2) |
LongestCommonSubstring.Formula |
getFormula() |
int |
getMinimumLength() |
boolean |
isTokenized() |
void |
setFormula(LongestCommonSubstring.Formula formula) |
void |
setMinimumLength(int minlen) |
public double compare(java.lang.String s1, java.lang.String s2)
compare
in interface StringComparator
public boolean isTokenized()
isTokenized
in interface StringComparator
public void setMinimumLength(int minlen)
public int getMinimumLength()
public void setFormula(LongestCommonSubstring.Formula formula)
public LongestCommonSubstring.Formula getFormula()