Class CurrencyContext
java.lang.Object
com.broadleafcommerce.creditaccount.web.endpoint.domain.CurrencyContext
- All Implemented Interfaces:
com.broadleafcommerce.money.CurrencyConsumer,Serializable,javax.money.CurrencySupplier
public class CurrencyContext
extends Object
implements Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
The currency info to read the
CreditAccount.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.CurrencyUnitThe currency by which to retrieve the Credit account.inthashCode()voidsetCurrency(javax.money.CurrencyUnit currency) The currency by which to retrieve the Credit account.toString()
-
Field Details
-
CURRENCY_CONTEXT_HEADER
- See Also:
-
-
Constructor Details
-
CurrencyContext
public CurrencyContext()
-
-
Method Details
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency by which to retrieve the Credit account.- Specified by:
getCurrencyin interfacejavax.money.CurrencySupplier
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency by which to retrieve the Credit account.- Specified by:
setCurrencyin interfacecom.broadleafcommerce.money.CurrencyConsumer
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-