org.broadleafcommerce.core.offer.service.type
Class OfferDiscountType

java.lang.Object
  extended by 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

Field Summary
static OfferDiscountType AMOUNT_OFF
           
static OfferDiscountType FIX_PRICE
           
static OfferDiscountType PERCENT_OFF
           
 
Constructor Summary
OfferDiscountType()
           
OfferDiscountType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static OfferDiscountType getInstance(String type)
           
 String getType()
           
 int hashCode()
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERCENT_OFF

public static final OfferDiscountType PERCENT_OFF

AMOUNT_OFF

public static final OfferDiscountType AMOUNT_OFF

FIX_PRICE

public static final OfferDiscountType FIX_PRICE
Constructor Detail

OfferDiscountType

public OfferDiscountType()

OfferDiscountType

public OfferDiscountType(String type,
                         String friendlyType)
Method Detail

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 © 2013. All Rights Reserved.