Class PriceTypeDetail
java.lang.Object
com.broadleafcommerce.catalog.domain.commerce.PriceTypeDetail
- All Implemented Interfaces:
Serializable
Summary of the info for a specific type of price (e.g., salePrice). This contains the currency
and "best" price for a type of price.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
The determined best price value for this type of price from amongst all the candidates.getType()
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.int
hashCode()
void
setBestPrice
(javax.money.MonetaryAmount bestPrice) The determined best price value for this type of price from amongst all the candidates.void
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.toString()
-
Constructor Details
-
PriceTypeDetail
public PriceTypeDetail() -
PriceTypeDetail
-
-
Method Details
-
getBestPrice
public javax.money.MonetaryAmount getBestPrice()The determined best price value for this type of price from amongst all the candidates.- Returns:
- The determined best price value for this type of price from amongst all the candidates.
-
getType
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.- Returns:
- The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
-
setBestPrice
public void setBestPrice(javax.money.MonetaryAmount bestPrice) The determined best price value for this type of price from amongst all the candidates.- Parameters:
bestPrice
- The determined best price value for this type of price from amongst all the candidates.
-
setType
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.- Parameters:
type
- The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-