public enum OrderDirection extends Enum<OrderDirection>
Enum
for sort order.Enum Constant and Description |
---|
ASC
Sort in ascending order.
|
DESC
Sort in descending order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAsc() |
boolean |
isDesc() |
static OrderDirection |
valueOf(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(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 boolean isAsc()
true
, if ASC
is set. false
otherwise.public boolean isDesc()
true
, if DESC
is set. false
otherwise.Copyright © 2014–2016 OASP-Team. All rights reserved.