Class OfferDiscountType

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

public class OfferDiscountType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
An extendible enumeration of discount types.
See Also:
  • Field Details

  • Constructor Details

    • OfferDiscountType

      public OfferDiscountType()
    • OfferDiscountType

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

    • getInstance

      public static OfferDiscountType 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