org.jminor.common.model
Enum SortingDirective
java.lang.Object
java.lang.Enum<SortingDirective>
org.jminor.common.model.SortingDirective
- All Implemented Interfaces:
- Serializable, Comparable<SortingDirective>
public enum SortingDirective
- extends Enum<SortingDirective>
Specifies sorting directives.
DESCENDING
public static final SortingDirective DESCENDING
ASCENDING
public static final SortingDirective ASCENDING
UNSORTED
public static final SortingDirective UNSORTED
values
public static SortingDirective[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SortingDirective c : SortingDirective.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SortingDirective valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null