Enum Class FulfillmentPriceProportionMethods
java.lang.Object
java.lang.Enum<FulfillmentPriceProportionMethods>
com.broadleafcommerce.cartoperation.service.configuration.FulfillmentPriceProportionMethods
- All Implemented Interfaces:
Serializable
,Comparable<FulfillmentPriceProportionMethods>
,Constable
Available default methods to compute each fulfillment item's proportion from the fulfillment
group's fulfillment price, when no band data is available.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCalculates an equal proportion for eachFulfillmentItem
.Calculates the proportion based on theFulfillmentItem.getQuantity()
For example, given anFulfillmentGroup
with 3 fulfillment items with quantities 3, 1, 4, they will have proportions 3/8, 1/8, 4/8, respectively. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FulfillmentPriceProportionMethods[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUANTITY
Calculates the proportion based on theFulfillmentItem.getQuantity()
For example, given anFulfillmentGroup
with 3 fulfillment items with quantities 3, 1, 4, they will have proportions 3/8, 1/8, 4/8, respectively. -
LINE_ITEM
Calculates an equal proportion for eachFulfillmentItem
. For example, given anFulfillmentGroup
with 3 fulfillment items with quantities 3, 1, 4, each will have a proportion of 1/3.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-