public enum SelectionMode extends Enum<SelectionMode> implements SphereEnumeration
MultiBuyLineItemsTarget
and a MultiBuyCustomLineItemsTarget
,
are selected to be discounted. This referres to the current price including already applied discounts.Enum Constant and Description |
---|
CHEAPEST
Select the cheapest items to be discounted.
|
MOST_EXPENSIVE
Select the most expensive items to be discounted.
|
Modifier and Type | Method and Description |
---|---|
static SelectionMode |
ofSphereValue(String value) |
static SelectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SelectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findBySphereName, name, toSphereName
public static final SelectionMode CHEAPEST
public static final SelectionMode MOST_EXPENSIVE
public static SelectionMode[] values()
for (SelectionMode c : SelectionMode.values()) System.out.println(c);
public static SelectionMode 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 SelectionMode ofSphereValue(String value)