public enum OrderDirection extends java.lang.Enum<OrderDirection>
Enum Constant and Description |
---|
ASC
Ascending order
|
DESC
Descending order
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
static OrderDirection |
getOrderDirection(int order)
Get the corresponding order direction
|
static OrderDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderDirection ASC
public static final OrderDirection DESC
public static OrderDirection[] values()
for (OrderDirection c : OrderDirection.values()) System.out.println(c);
public static OrderDirection 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 int getOrder()
int
valuepublic static final OrderDirection getOrderDirection(int order)
order
- The order int
value