public static enum Suggest.Suggestion.Sort extends Enum<Suggest.Suggestion.Sort>
Enum Constant and Description |
---|
FREQUENCY
Sort should first be based on document frequency.
|
SCORE
Sort should first be based on score.
|
Modifier and Type | Method and Description |
---|---|
static Suggest.Suggestion.Sort |
fromId(byte id) |
byte |
id() |
static Suggest.Suggestion.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Suggest.Suggestion.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Suggest.Suggestion.Sort SCORE
public static final Suggest.Suggestion.Sort FREQUENCY
public static Suggest.Suggestion.Sort[] values()
for (Suggest.Suggestion.Sort c : Suggest.Suggestion.Sort.values()) System.out.println(c);
public static Suggest.Suggestion.Sort 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 nullpublic byte id()
public static Suggest.Suggestion.Sort fromId(byte id)
Copyright © 2009–2016. All rights reserved.