public static enum Sort.Direction extends java.lang.Enum<Sort.Direction>
| Enum Constant | Description |
|---|---|
ASC |
Ascending direction.
|
DESC |
Descending direction.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Sort.Direction |
fromString(java.lang.String value) |
Returns the
Sort.Direction enum for the given String value. |
static Sort.Direction |
fromStringOrNull(java.lang.String value) |
|
boolean |
isAscending() |
Returns whether the direction is ascending.
|
boolean |
isDescending() |
Returns whether the direction is descending.
|
static Sort.Direction |
valueOf(java.lang.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(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 boolean isAscending()
true if ascending, false otherwisepublic boolean isDescending()
true if descending, false otherwisepublic static Sort.Direction fromString(java.lang.String value)
Sort.Direction enum for the given String value.value - The direction stringpublic static Sort.Direction fromStringOrNull(java.lang.String value)
value - The direction stringnull if unknownCopyright © 2014–2019 Blazebit. All rights reserved.