Class MoneyImpl
java.lang.Object
com.commercetools.ml.models.common.MoneyImpl
- All Implemented Interfaces:
Money
,io.vrap.rmf.base.client.ModelBase
Money
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The currency code compliant to ISO 4217.int
hashCode()
void
setCentAmount
(Long centAmount) set centAmountvoid
setCurrencyCode
(String currencyCode) The currency code compliant to ISO 4217.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
MoneyImpl
public MoneyImpl()create empty instance
-
-
Method Details
-
getCentAmount
- Specified by:
getCentAmount
in interfaceMoney
- Returns:
- centAmount
-
getCurrencyCode
The currency code compliant to ISO 4217.
- Specified by:
getCurrencyCode
in interfaceMoney
- Returns:
- currencyCode
-
setCentAmount
Description copied from interface:Money
set centAmount- Specified by:
setCentAmount
in interfaceMoney
- Parameters:
centAmount
- value to be set
-
setCurrencyCode
Description copied from interface:Money
The currency code compliant to ISO 4217.
- Specified by:
setCurrencyCode
in interfaceMoney
- Parameters:
currencyCode
- value to be set
-
equals
-
hashCode
-