java.lang.Object
com.commercetools.importapi.models.common.MoneyImpl
All Implemented Interfaces:
Money, TypedMoney, io.vrap.rmf.base.client.ModelBase

public class MoneyImpl extends Object implements Money, io.vrap.rmf.base.client.ModelBase
Money
  • Constructor Details

    • MoneyImpl

      public MoneyImpl()
      create empty instance
  • Method Details

    • getType

      public MoneyType getType()
      Specified by:
      getType in interface TypedMoney
      Returns:
      type
    • getFractionDigits

      public Integer getFractionDigits()
      Specified by:
      getFractionDigits in interface TypedMoney
      Returns:
      fractionDigits
    • getCentAmount

      public Long getCentAmount()
      Specified by:
      getCentAmount in interface TypedMoney
      Returns:
      centAmount
    • getCurrencyCode

      public String getCurrencyCode()

      The currency code compliant to ISO 4217.

      Specified by:
      getCurrencyCode in interface TypedMoney
      Returns:
      currencyCode
    • setFractionDigits

      public void setFractionDigits(Integer fractionDigits)
      Description copied from interface: TypedMoney
      set fractionDigits
      Specified by:
      setFractionDigits in interface TypedMoney
      Parameters:
      fractionDigits - value to be set
    • setCentAmount

      public void setCentAmount(Long centAmount)
      Description copied from interface: TypedMoney
      set centAmount
      Specified by:
      setCentAmount in interface TypedMoney
      Parameters:
      centAmount - value to be set
    • setCurrencyCode

      public void setCurrencyCode(String currencyCode)
      Description copied from interface: TypedMoney

      The currency code compliant to ISO 4217.

      Specified by:
      setCurrencyCode in interface TypedMoney
      Parameters:
      currencyCode - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object