Class PriceModelImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.PriceModelImpl
- All Implemented Interfaces:
BaseModel,PriceModel,Serializable,Cloneable
- Direct Known Subclasses:
ZeroPriceModelImpl
Default implementation of the
PriceModel- See Also:
-
Field Summary
Fields inherited from class de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
DEFAULT_ARRAY_LIST_CAPACITYFields inherited from interface de.hybris.platform.sap.productconfig.runtime.interf.model.PriceModel
NO_PRICE, PRICE_NA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected booleanprotected booleanbooleanChecks whether this is a valid pricevoidsetCurrency(String currency) voidsetObsoletePriceValue(BigDecimal strikeThroughValue) voidsetPriceValue(BigDecimal priceValue) toString()
-
Constructor Details
-
PriceModelImpl
public PriceModelImpl()
-
-
Method Details
-
setCurrency
- Specified by:
setCurrencyin interfacePriceModel- Parameters:
currency- price currency
-
getCurrency
- Specified by:
getCurrencyin interfacePriceModel- Returns:
- price currency
-
getPriceValue
- Specified by:
getPriceValuein interfacePriceModel- Returns:
- price value
-
setPriceValue
- Specified by:
setPriceValuein interfacePriceModel- Parameters:
priceValue- price value
-
hashCode
public int hashCode() -
equals
-
toString
-
hasValidPrice
public boolean hasValidPrice()Description copied from interface:PriceModelChecks whether this is a valid price- Specified by:
hasValidPricein interfacePriceModel- Returns:
trueonly if a NON-Zero price value and a currency are assigned
-
hasNoCurrency
protected boolean hasNoCurrency() -
hasNoPrice
protected boolean hasNoPrice() -
getObsoletePriceValue
- Specified by:
getObsoletePriceValuein interfacePriceModel- Returns:
- old price without discount
-
setObsoletePriceValue
- Specified by:
setObsoletePriceValuein interfacePriceModel- Parameters:
strikeThroughValue- old price without discount
-