org.broadleafcommerce.core.offer.service.type
Class OfferDiscountType
java.lang.Object
org.broadleafcommerce.core.offer.service.type.OfferDiscountType
- All Implemented Interfaces:
- Serializable, BroadleafEnumerationType
public class OfferDiscountType
- extends Object
- implements Serializable, BroadleafEnumerationType
An extendible enumeration of discount types.
- See Also:
- Serialized Form
PERCENT_OFF
public static final OfferDiscountType PERCENT_OFF
AMOUNT_OFF
public static final OfferDiscountType AMOUNT_OFF
FIX_PRICE
public static final OfferDiscountType FIX_PRICE
OfferDiscountType
public OfferDiscountType()
OfferDiscountType
public OfferDiscountType(String type,
String friendlyType)
getInstance
public static OfferDiscountType getInstance(String type)
setType
public void setType(String type)
getType
public String getType()
- Specified by:
getType in interface BroadleafEnumerationType
getFriendlyType
public String getFriendlyType()
- Specified by:
getFriendlyType in interface BroadleafEnumerationType
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012. All Rights Reserved.