public static enum SortElement.Type extends Enum<SortElement.Type>
RELEVANCY
sorts by relevancy descending. The rest of parameters are ignored.
FIELD
sorts by a field specified in SortElement.getValue()
in SortElement.getOrder()
EXPRESSION
sorts by an expression specified in SortElement.getValue()
in SortElement.getOrder()
QUERY
sorts by a query specified in SortElement.getQuery()
()} in SortElement.getOrder()
Enum Constant and Description |
---|
EXPRESSION
Sorts by an expression specified in
SortElement.getValue() in SortElement.getOrder() |
FIELD
Sorts by a field specified in
SortElement.getValue() in SortElement.getOrder() |
QUERY
Sorts by a query specified in
SortElement.getQuery() ()} in SortElement.getOrder() |
RELEVANCY
Sorts by relevancy descending
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static SortElement.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortElement.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortElement.Type FIELD
SortElement.getValue()
in SortElement.getOrder()
public static final SortElement.Type EXPRESSION
SortElement.getValue()
in SortElement.getOrder()
public static final SortElement.Type RELEVANCY
public static final SortElement.Type QUERY
SortElement.getQuery()
()} in SortElement.getOrder()
public static SortElement.Type[] values()
for (SortElement.Type c : SortElement.Type.values()) System.out.println(c);
public static SortElement.Type 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 String toString()
toString
in class Enum<SortElement.Type>