public static enum CompanySettings.DiscountStrategy extends Enum<CompanySettings.DiscountStrategy>
| Enum Constant and Description |
|---|
byPriority
Приоритетная (должна действовать одна, наиболее выгодная для покупателя скидка)
|
bySum
Сумма скидок (должна действовать сумма скидок)
|
| Modifier and Type | Method and Description |
|---|---|
static CompanySettings.DiscountStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompanySettings.DiscountStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompanySettings.DiscountStrategy bySum
public static final CompanySettings.DiscountStrategy byPriority
public static CompanySettings.DiscountStrategy[] values()
for (CompanySettings.DiscountStrategy c : CompanySettings.DiscountStrategy.values()) System.out.println(c);
public static CompanySettings.DiscountStrategy 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 © 2023. All rights reserved.