Enum Constant and Description |
---|
BY_PATH
sort by path
|
LASTMODIFIED
sort by last modification time
|
RELEVANCY
sort by relevancy
|
Modifier and Type | Method and Description |
---|---|
static SortOrder |
get(java.lang.String name)
Get the Sort order wrt.
|
java.lang.String |
getDesc()
A more user friendly description (UI name) of the sort order.
|
java.lang.String |
toString()
The query parameter name.
|
static SortOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortOrder LASTMODIFIED
public static final SortOrder RELEVANCY
public static final SortOrder BY_PATH
public static SortOrder[] values()
for (SortOrder c : SortOrder.values()) System.out.println(c);
public static SortOrder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SortOrder get(java.lang.String name)
name
- the query parameter name of the order to find.null
if there is no SortOrder with the given name,
the corresponding SortOrder otherwise.toString()
public java.lang.String toString()
toString
in class java.lang.Enum<SortOrder>
public java.lang.String getDesc()