Class ZeroPriceModelImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
-
- de.hybris.platform.sap.productconfig.runtime.interf.model.impl.PriceModelImpl
-
- de.hybris.platform.sap.productconfig.runtime.interf.model.impl.ZeroPriceModelImpl
-
- All Implemented Interfaces:
BaseModel,PriceModel,java.lang.Cloneable
public final class ZeroPriceModelImpl extends PriceModelImpl
Immutable Object
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.sap.productconfig.runtime.interf.model.PriceModel
NO_PRICE, PRICE_NA
-
-
Constructor Summary
Constructors Constructor Description ZeroPriceModelImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceModelclone()java.lang.StringgetCurrency()java.math.BigDecimalgetObsoletePriceValue()java.math.BigDecimalgetPriceValue()voidsetCurrency(java.lang.String currency)voidsetObsoletePriceValue(java.math.BigDecimal priceValue)voidsetPriceValue(java.math.BigDecimal priceValue)-
Methods inherited from class de.hybris.platform.sap.productconfig.runtime.interf.model.impl.PriceModelImpl
equals, hashCode, hasNoCurrency, hasNoPrice, hasValidPrice, toString
-
-
-
-
Method Detail
-
setCurrency
public void setCurrency(java.lang.String currency)
- Specified by:
setCurrencyin interfacePriceModel- Overrides:
setCurrencyin classPriceModelImpl- Parameters:
currency- price currency
-
setPriceValue
public void setPriceValue(java.math.BigDecimal priceValue)
- Specified by:
setPriceValuein interfacePriceModel- Overrides:
setPriceValuein classPriceModelImpl- Parameters:
priceValue- price value
-
setObsoletePriceValue
public void setObsoletePriceValue(java.math.BigDecimal priceValue)
- Specified by:
setObsoletePriceValuein interfacePriceModel- Overrides:
setObsoletePriceValuein classPriceModelImpl- Parameters:
priceValue- old price without discount
-
getCurrency
public java.lang.String getCurrency()
- Specified by:
getCurrencyin interfacePriceModel- Overrides:
getCurrencyin classPriceModelImpl- Returns:
- price currency
-
getPriceValue
public java.math.BigDecimal getPriceValue()
- Specified by:
getPriceValuein interfacePriceModel- Overrides:
getPriceValuein classPriceModelImpl- Returns:
- price value
-
getObsoletePriceValue
public java.math.BigDecimal getObsoletePriceValue()
- Specified by:
getObsoletePriceValuein interfacePriceModel- Overrides:
getObsoletePriceValuein classPriceModelImpl- Returns:
- old price without discount
-
clone
public PriceModel clone()
- Overrides:
clonein classjava.lang.Object
-
-