| Enum Constant and Description |
|---|
ASCENDING_DATE |
ASCENDING_PRICE |
DECRASING_DATE |
DECRASING_PRICE |
| Modifier and Type | Method and Description |
|---|---|
Sorting |
next() |
static Sorting |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sorting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sorting ASCENDING_PRICE
public static final Sorting DECRASING_PRICE
public static final Sorting ASCENDING_DATE
public static final Sorting DECRASING_DATE
public static Sorting[] values()
for (Sorting c : Sorting.values()) System.out.println(c);
public static Sorting 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 Sorting next()