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