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
All Methods Instance Methods Concrete Methods 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 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)
-
-