Class MoneyImpl

java.lang.Object
com.commercetools.ml.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
  • 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
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    The currency code compliant to ISO 4217.
    int
     
    void
    setCentAmount(Long centAmount)
    set centAmount
    void
    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

    Methods inherited from interface com.commercetools.ml.models.common.Money

    withMoney
  • Constructor Details

    • MoneyImpl

      public MoneyImpl()
      create empty instance
  • Method Details

    • getCentAmount

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

      public String getCurrencyCode()

      The currency code compliant to ISO 4217.

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

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

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

      The currency code compliant to ISO 4217.

      Specified by:
      setCurrencyCode in interface Money
      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