public enum ESortOrder extends Enum<ESortOrder> implements ISortOrderIndicator
ASCENDING sorting.| Enum Constant and Description |
|---|
ASCENDING |
DESCENDING |
| Modifier and Type | Field and Description |
|---|---|
static ESortOrder |
DEFAULT
The default sort order is
ASCENDING |
| Modifier and Type | Method and Description |
|---|---|
ESortOrder |
getAlternate()
Get the alternate sort order.
|
static ESortOrder |
getFromValue(int nValue,
ESortOrder eDefault) |
static ESortOrder |
getFromValueOrDefault(int nValue) |
int |
getValue() |
String |
getValueAsString() |
boolean |
isAscending() |
boolean |
isDescending() |
static ESortOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ESortOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ESortOrder ASCENDING
public static final ESortOrder DESCENDING
public static final ESortOrder DEFAULT
ASCENDINGpublic static ESortOrder[] values()
for (ESortOrder c : ESortOrder.values()) System.out.println(c);
public static ESortOrder 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@Nonnegative public int getValue()
public boolean isAscending()
isAscending in interface ISortOrderIndicatortrue is ascending sort order is active.public boolean isDescending()
isDescending in interface ISortOrderIndicatortrue is descending sort order is active.@Nonnull public ESortOrder getAlternate()
null.@Nonnull public static ESortOrder getFromValueOrDefault(int nValue)
@Nullable public static ESortOrder getFromValue(int nValue, @Nullable ESortOrder eDefault)
Copyright © 2006–2015 phloc systems. All rights reserved.