Class CustomerMaxUsesStrategyType

java.lang.Object
org.broadleafcommerce.core.offer.service.type.CustomerMaxUsesStrategyType
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class CustomerMaxUsesStrategyType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
Determines how the Offer.getMaxUsesPerCustomer() will be applied.
See Also:
  • Field Details

  • Constructor Details

    • CustomerMaxUsesStrategyType

      public CustomerMaxUsesStrategyType()
    • CustomerMaxUsesStrategyType

      public CustomerMaxUsesStrategyType(String type, String friendlyType)
  • Method Details

    • getInstance

      public static CustomerMaxUsesStrategyType getInstance(String type)
    • getType

      public String getType()
      Specified by:
      getType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • setType

      public void setType(String type)
    • getFriendlyType

      public String getFriendlyType()
      Specified by:
      getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object