public static enum Ordering.Direction extends Enum<Ordering.Direction>
The sorting direction.
Enum Constant and Description |
---|
ASC
Sorts in ascending order.
|
DESC
Sorts in descending order.
|
Modifier and Type | Method and Description |
---|---|
static Ordering.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ordering.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ordering.Direction ASC
Sorts in ascending order.
public static final Ordering.Direction DESC
Sorts in descending order.
public static Ordering.Direction[] values()
for (Ordering.Direction c : Ordering.Direction.values()) System.out.println(c);
public static Ordering.Direction 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 nullCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.