public static enum Sort.Direction extends Enum<Sort.Direction>
| Enum Constant and Description |
|---|
ASC
Ascending direction.
|
DESC
Descending direction.
|
| Modifier and Type | Method and Description |
|---|---|
static Sort.Direction |
fromString(String value)
Returns the
Sort.Direction enum for the given String value. |
static Sort.Direction |
fromStringOrNull(String value)
|
boolean |
isAscending()
Returns whether the direction is ascending.
|
boolean |
isDescending()
Returns whether the direction is descending.
|
static Sort.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sort.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sort.Direction ASC
public static final Sort.Direction DESC
public static Sort.Direction[] values()
for (Sort.Direction c : Sort.Direction.values()) System.out.println(c);
public static Sort.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 nullpublic boolean isAscending()
true if ascending, false otherwisepublic boolean isDescending()
true if descending, false otherwisepublic static Sort.Direction fromString(String value)
Sort.Direction enum for the given String value.value - The direction stringpublic static Sort.Direction fromStringOrNull(String value)
value - The direction stringnull if unknownCopyright © 2014–2018 Blazebit. All rights reserved.