Enum PriceModificationType
- java.lang.Object
-
- java.lang.Enum<PriceModificationType>
-
- com.broadleafcommerce.pricing.domain.type.PriceModificationType
-
- All Implemented Interfaces:
Serializable
,Comparable<PriceModificationType>
public enum PriceModificationType extends Enum<PriceModificationType>
Operations thatPriceModifier
s can perform on prices.- Author:
- Nathan Moore (nathanmoore).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITION
MULTIPLICATION
PERCENTAGE
SUBTRACTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PriceModificationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PriceModificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERCENTAGE
public static final PriceModificationType PERCENTAGE
-
MULTIPLICATION
public static final PriceModificationType MULTIPLICATION
-
ADDITION
public static final PriceModificationType ADDITION
-
SUBTRACTION
public static final PriceModificationType SUBTRACTION
-
-
Method Detail
-
values
public static PriceModificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PriceModificationType c : PriceModificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PriceModificationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-