com.liferay.portal.kernel.search.suggest
Enum Suggester.Sort
java.lang.Object
java.lang.Enum<Suggester.Sort>
com.liferay.portal.kernel.search.suggest.Suggester.Sort
- All Implemented Interfaces:
- Serializable, Comparable<Suggester.Sort>
- Enclosing interface:
- Suggester
public static enum Suggester.Sort
- extends Enum<Suggester.Sort>
|
Method Summary |
static Suggester.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Suggester.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
FREQUENCY
public static final Suggester.Sort FREQUENCY
SCORE
public static final Suggester.Sort SCORE
values
public static Suggester.Sort[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Suggester.Sort c : Suggester.Sort.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Suggester.Sort valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null