public enum ListSortEnum extends Enum<ListSortEnum>
| Enum Constant and Description |
|---|
ID_ASC
sort by id ascending.
|
ID_DSC
sort by id descending.
|
NAME_ASC
sort by name ascending.
|
NAME_DSC
sort by name descending.
|
| Modifier and Type | Method and Description |
|---|---|
static ListSortEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ListSortEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListSortEnum ID_ASC
public static final ListSortEnum ID_DSC
public static final ListSortEnum NAME_ASC
public static final ListSortEnum NAME_DSC
public static ListSortEnum[] values()
for (ListSortEnum c : ListSortEnum.values()) System.out.println(c);
public static ListSortEnum 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 © 2015–2017. All rights reserved.