Class ExchangeRateDetail
java.lang.Object
com.broadleafcommerce.pricing.client.domain.ExchangeRateDetail
- All Implemented Interfaces:
Serializable
Represents the details of the exchange rate used to convert a
MonetaryAmount from one
currency to another.- Since:
- 2.0.4
- Author:
- karanjariwala
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes that can be set to this ExchangeRateDetail.TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert.TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert.getRate()The conversion factor to convertgetBaseCurrencyCode()to thegetConvertedCurrencyCode()inthashCode()voidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes that can be set to this ExchangeRateDetail.voidsetBaseCurrencyCode(String baseCurrencyCode) TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert.voidsetConvertedCurrencyCode(String convertedCurrencyCode) TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert.voidsetRate(BigDecimal rate) The conversion factor to convertgetBaseCurrencyCode()to thegetConvertedCurrencyCode()toString()
-
Constructor Details
-
ExchangeRateDetail
public ExchangeRateDetail()
-
-
Method Details
-
getBaseCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert. -
getConvertedCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert. -
getRate
The conversion factor to convertgetBaseCurrencyCode()to thegetConvertedCurrencyCode() -
getAttributes
Miscellaneous attributes that can be set to this ExchangeRateDetail. -
setBaseCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert. -
setConvertedCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert. -
setRate
The conversion factor to convertgetBaseCurrencyCode()to thegetConvertedCurrencyCode() -
setAttributes
Miscellaneous attributes that can be set to this ExchangeRateDetail. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-