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 TotalAmount
convertToCurrency(CurrencyType newCurrency)
Create a TotalAmount with the given currency and this amount converted into that currency.TotalAmount
duplicate()
Return a new TotalAmount with the same values as this one.long
getAmount()
void
incrementBy(long amount, CurrencyType ofCurrency)
void
incrementBy(long amount, CurrencyType ofCurrency, int onDate)
void
incrementBy(TotalAmount subtotal)
void
incrementBy(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
-