Class TotalAmount
java.lang.Object
com.infinitekind.moneydance.model.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 Summary
Constructors Constructor Description TotalAmount(CurrencyType currency)TotalAmount(CurrencyType currency, long initialAmount) -
Method Summary
Modifier and Type Method Description TotalAmountconvertToCurrency(CurrencyType newCurrency)Create a TotalAmount with the given currency and this amount converted into that currency.TotalAmountduplicate()Return a new TotalAmount with the same values as this one.longgetAmount()voidincrementBy(long amount, CurrencyType ofCurrency)voidincrementBy(long amount, CurrencyType ofCurrency, int onDate)voidincrementBy(TotalAmount subtotal)voidincrementBy(TotalAmount subtotal, int onDate)
-
Constructor Details
-
Method Details
-
duplicate
Return a new TotalAmount with the same values as this one.- Since:
- Moneydance 2017.3 build 1614
-
convertToCurrency
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
-
incrementBy
-
incrementBy
-
incrementBy
-