Class MoneyImpl

java.lang.Object
com.commercetools.history.models.common.MoneyImpl
All Implemented Interfaces:
Money, 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

    • getCurrencyCode

      public String getCurrencyCode()

      Currency code compliant to ISO 4217.

      Specified by:
      getCurrencyCode in interface Money
      Returns:
      currencyCode
    • getCentAmount

      public Integer getCentAmount()
      Specified by:
      getCentAmount in interface Money
      Returns:
      centAmount
    • getFractionDigits

      public Integer getFractionDigits()
      Specified by:
      getFractionDigits in interface Money
      Returns:
      fractionDigits
    • getType

      public MoneyType getType()
      Specified by:
      getType in interface Money
      Returns:
      type
    • setCurrencyCode

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

      Currency code compliant to ISO 4217.

      Specified by:
      setCurrencyCode in interface Money
      Parameters:
      currencyCode - value to be set
    • setCentAmount

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

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

      public void setType(MoneyType type)
      Description copied from interface: Money
      set type
      Specified by:
      setType in interface Money
      Parameters:
      type - 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