Enum Class DefaultMergingType
java.lang.Object
java.lang.Enum<DefaultMergingType>
com.broadleafcommerce.cartoperation.domain.type.DefaultMergingType
- All Implemented Interfaces:
Serializable
,Comparable<DefaultMergingType>
,Constable
Out of the box merging types for Products.
- Author:
- SkyePekerti
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCombine item into a similar item.Reject or ignore item from being added.Keep item separate from similar items. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isRejectOrIgnore
(String mergingType) static boolean
isSeparate
(String mergingType) static DefaultMergingType
Returns the enum constant of this class with the specified name.static DefaultMergingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMBINE
Combine item into a similar item. -
SEPARATE
Keep item separate from similar items. -
REJECT_OR_IGNORE
Reject or ignore item from being added.
-
-
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
-
isCombine
-
isSeparate
-
isRejectOrIgnore
-