public enum StringDistanceTypes extends Enum<StringDistanceTypes>
Enum Constant and Description |
---|
DEFAULT
Default, equivalent to Levenshtein
|
JARO_WINKLER
JaroWinkler distance algorithm
|
LEVENSHTEIN
Levenshtein distance algorithm (default)
|
N_GRAM
NGram distance algorithm
|
NONE
Default, suggestion is not active
|
Modifier and Type | Method and Description |
---|---|
static StringDistanceTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringDistanceTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringDistanceTypes NONE
public static final StringDistanceTypes DEFAULT
public static final StringDistanceTypes LEVENSHTEIN
public static final StringDistanceTypes JARO_WINKLER
public static final StringDistanceTypes N_GRAM
public static StringDistanceTypes[] values()
for (StringDistanceTypes c : StringDistanceTypes.values()) System.out.println(c);
public static StringDistanceTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All Rights Reserved.