Enum DefaultMergingType
- java.lang.Object
-
- java.lang.Enum<DefaultMergingType>
-
- com.broadleafcommerce.cartoperation.domain.type.DefaultMergingType
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultMergingType>
public enum DefaultMergingType extends Enum<DefaultMergingType>
Out of the box merging types for Products.- Author:
- SkyePekerti
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMBINE
Combine item into a similar item.REJECT_OR_IGNORE
Reject or ignore item from being added.SEPARATE
Keep item separate from similar items.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultMergingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultMergingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMBINE
public static final DefaultMergingType COMBINE
Combine item into a similar item.
-
SEPARATE
public static final DefaultMergingType SEPARATE
Keep item separate from similar items.
-
REJECT_OR_IGNORE
public static final DefaultMergingType REJECT_OR_IGNORE
Reject or ignore item from being added.
-
-
Method Detail
-
values
public static DefaultMergingType[] 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 (DefaultMergingType c : DefaultMergingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultMergingType 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
-
-