public enum DiscountEffect extends java.lang.Enum<DiscountEffect>
| Enum Constant and Description |
|---|
ADD_MISSING_ITEMS |
ADD_NEW_ITEMS |
APPLY_TO_ITEMS |
APPLY_TO_ITEMS_BY_QUANTITY |
APPLY_TO_ITEMS_PROPORTIONALLY |
APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY |
APPLY_TO_ORDER |
| Modifier and Type | Method and Description |
|---|---|
static DiscountEffect |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiscountEffect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscountEffect ADD_MISSING_ITEMS
public static final DiscountEffect ADD_NEW_ITEMS
public static final DiscountEffect APPLY_TO_ORDER
public static final DiscountEffect APPLY_TO_ITEMS
public static final DiscountEffect APPLY_TO_ITEMS_BY_QUANTITY
public static final DiscountEffect APPLY_TO_ITEMS_PROPORTIONALLY
public static final DiscountEffect APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY
public static DiscountEffect[] values()
for (DiscountEffect c : DiscountEffect.values()) System.out.println(c);
public static DiscountEffect 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 null