public enum SortDirection extends java.lang.Enum<SortDirection>
Enum Constant and Description |
---|
ASCENDING
The collection is sorted ascending.
|
DESCENDING
The collection is sorted descending.
|
Modifier and Type | Method and Description |
---|---|
static SortDirection |
find(int id)
Finds the sort direction for the given id.
|
static SortDirection |
find(java.lang.String name)
Finds the sort direction for the given name which needs to be a textual representation of the enum name.
|
int |
getID()
Returns the id for this sort direction.
|
static SortDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortDirection ASCENDING
public static final SortDirection DESCENDING
public static SortDirection[] values()
for (SortDirection c : SortDirection.values()) System.out.println(c);
public static SortDirection 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 getID()
public static SortDirection find(int id)
id
- wanted idpublic static SortDirection find(java.lang.String name)
name
- wanted direction, ie. ascending
or descending
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.