Class TotalAmount


  • public class TotalAmount
    extends java.lang.Object
    A simple wrapper that is used to hold amounts of a give currency when totaling values of potentially different currencies.
    Since:
    Moneydance 2017 build 1528
    • Constructor Detail

      • TotalAmount

        public TotalAmount​(CurrencyType currency)
      • TotalAmount

        public TotalAmount​(CurrencyType currency,
                           long initialAmount)
    • Method Detail

      • duplicate

        public TotalAmount duplicate()
        Return a new TotalAmount with the same values as this one.
        Since:
        Moneydance 2017.3 build 1614
      • convertToCurrency

        public TotalAmount convertToCurrency​(CurrencyType newCurrency)
        Create a TotalAmount with the given currency and this amount converted into that currency.
        Since:
        Moneydance 2017.3 build 1614
      • getAmount

        public long getAmount()
      • incrementBy

        public void incrementBy​(long amount,
                                CurrencyType ofCurrency)
      • incrementBy

        public void incrementBy​(long amount,
                                CurrencyType ofCurrency,
                                int onDate)
      • incrementBy

        public void incrementBy​(TotalAmount subtotal)
      • incrementBy

        public void incrementBy​(TotalAmount subtotal,
                                int onDate)