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() |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isDescending
public static final ESortOrder ASCENDING
public static final ESortOrder DESCENDING
public static final ESortOrder DEFAULT
ASCENDING
public 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 ISortOrderIndicator
true
is ascending 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 © 2014–2019 Philip Helger. All rights reserved.