public enum SortOrder extends Enum<SortOrder>
| Enum Constant and Description |
|---|
ASCENDING |
DESCENDING |
| Modifier and Type | Method and Description |
|---|---|
static SortOrder |
getByValue(String sortOrder)
tries to get the correct sortOrder value by the given value
|
static SortOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortOrder ASCENDING
public static final SortOrder DESCENDING
public static SortOrder[] values()
for (SortOrder c : SortOrder.values()) System.out.println(c);
public static SortOrder 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 static SortOrder getByValue(String sortOrder)
sortOrder - the value that should be match to one of the defined enumsBadRequestException - if the sortOrder value is not null and does not match to one of the defined
enumsCopyright © 2020. All rights reserved.