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 Details

    • 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 Details

    • values

      public static DefaultMergingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null