public static enum Suggester.StringDistance extends Enum<Suggester.StringDistance>
Enum Constant and Description |
---|
DAMERAU_LEVENSHTEIN |
INTERNAL |
JAROWINKLER |
LEVENSTEIN |
NGRAM |
Modifier and Type | Method and Description |
---|---|
static Suggester.StringDistance |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Suggester.StringDistance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Suggester.StringDistance DAMERAU_LEVENSHTEIN
public static final Suggester.StringDistance INTERNAL
public static final Suggester.StringDistance JAROWINKLER
public static final Suggester.StringDistance LEVENSTEIN
public static final Suggester.StringDistance NGRAM
public static Suggester.StringDistance[] values()
for (Suggester.StringDistance c : Suggester.StringDistance.values()) System.out.println(c);
public static Suggester.StringDistance 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 null