Enum Class DefaultMergingType

java.lang.Object
java.lang.Enum<DefaultMergingType>
com.broadleafcommerce.cartoperation.domain.type.DefaultMergingType
All Implemented Interfaces:
Serializable, Comparable<DefaultMergingType>, Constable

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 class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultMergingType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isCombine

      public static boolean isCombine(String mergingType)
    • isSeparate

      public static boolean isSeparate(String mergingType)
    • isRejectOrIgnore

      public static boolean isRejectOrIgnore(String mergingType)