public enum SortingMethod extends Enum<SortingMethod>
| Enum Constant and Description |
|---|
ALPHABETICAL
Order by name of the element.
|
NATURAL
Same order as in JSON file.
|
| Modifier and Type | Method and Description |
|---|---|
static SortingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortingMethod NATURAL
public static final SortingMethod ALPHABETICAL
public static SortingMethod[] values()
for (SortingMethod c : SortingMethod.values()) System.out.println(c);
public static SortingMethod 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 © 2019. All rights reserved.