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 boolean
boolean
javax.money.CurrencyUnit
The currency by which to retrieve the Credit account.int
hashCode()
void
setCurrency
(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:
getCurrency
in interfacejavax.money.CurrencySupplier
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency by which to retrieve the Credit account.- Specified by:
setCurrency
in interfacecom.broadleafcommerce.money.CurrencyConsumer
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-