public final class Levenshtein
extends java.lang.Object
| Constructor and Description |
|---|
Levenshtein()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
similar(byte[] token,
byte[] sub,
int err)
Compares two character arrays for similarity.
|
public boolean similar(byte[] token,
byte[] sub,
int err)
token - token to be comparedsub - second token to be comparederr - number of allowed errors; dynamic calculation if value is 0