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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe currency code compliant to ISO 4217.inthashCode()voidsetCentAmount(Long centAmount) set centAmountvoidsetCurrencyCode(String currencyCode) The currency code compliant to ISO 4217.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
MoneyImpl
public MoneyImpl()create empty instance
-
-
Method Details
-
getCentAmount
- Specified by:
getCentAmountin interfaceMoney- Returns:
- centAmount
-
getCurrencyCode
The currency code compliant to ISO 4217.
- Specified by:
getCurrencyCodein interfaceMoney- Returns:
- currencyCode
-
setCentAmount
Description copied from interface:Moneyset centAmount- Specified by:
setCentAmountin interfaceMoney- Parameters:
centAmount- value to be set
-
setCurrencyCode
Description copied from interface:MoneyThe currency code compliant to ISO 4217.
- Specified by:
setCurrencyCodein interfaceMoney- Parameters:
currencyCode- value to be set
-
equals
-
hashCode
public int hashCode()
-