Class FormattedAmount

java.lang.Object
com.caplin.motif.fx.config.FormattedAmount

public class FormattedAmount extends Object
  • Constructor Details

    • FormattedAmount

      public FormattedAmount(@Nonnull BigDecimal amount, @Nonnull String currency, int dps)
      Parameters:
      amount - The amount, e.g. 1234.50
      currency - The currency, e.g. GBP
      dps - The number of decimal places of the amount, e.g. 2
  • Method Details

    • getAmount

      @Nonnull public BigDecimal getAmount()
    • getCurrency

      @Nonnull public String getCurrency()
    • getDps

      public int getDps()
    • 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